Skip to content

Commit ba00be2

Browse files
Darksonnfbq
authored andcommitted
rust: don't select CONSTRUCTORS
This was originally part of commit 4b9a68f ("rust: add support for static synchronisation primitives") from the old Rust branch, which used module constructors to initialize globals containing various synchronisation primitives with pin-init. That commit has never been upstreamed, but the `select CONSTRUCTORS` statement ended up being included in the patch that initially added Rust support to the Linux Kernel. We are not using module constructors, so let's remove the select. Signed-off-by: Alice Ryhl <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e8f2f8d commit ba00be2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

init/Kconfig

-1
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,6 @@ config RUST
19031903
depends on !GCC_PLUGINS
19041904
depends on !RANDSTRUCT
19051905
depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
1906-
select CONSTRUCTORS
19071906
help
19081907
Enables Rust support in the kernel.
19091908

0 commit comments

Comments
 (0)