Skip to content

Commit a628ac7

Browse files
Darksonnsmb49
authored andcommitted
rust: don't select CONSTRUCTORS
BugLink: https://bugs.launchpad.net/bugs/2070337 commit 7d49f53af4b988b188d3932deac2c9c80fd7d9ce upstream. This was originally part of commit 4b9a68f2e59a0 ("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]> Cc: [email protected] Fixes: 2f7ab12 ("Kbuild: add Rust support") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Manuel Diewald <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent 3cea765 commit a628ac7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

init/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,6 @@ config RUST
19161916
depends on !GCC_PLUGINS
19171917
depends on !RANDSTRUCT
19181918
depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
1919-
select CONSTRUCTORS
19201919
help
19211920
Enables Rust support in the kernel.
19221921

0 commit comments

Comments
 (0)