Skip to content

Commit

Permalink
rust: don't select CONSTRUCTORS
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Darksonn authored and fbq committed Mar 29, 2024
1 parent b8bb3d2 commit 1decb83
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,6 @@ config RUST
depends on !GCC_PLUGINS
depends on !RANDSTRUCT
depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
select CONSTRUCTORS
help
Enables Rust support in the kernel.

Expand Down

0 comments on commit 1decb83

Please sign in to comment.