Skip to content

Commit ac05d44

Browse files
DarksonnMa Wupeng
authored andcommitted
rust: don't select CONSTRUCTORS
stable inclusion from stable-v6.6.30 commit 37ca196aa4d8aa5529f44d776051b3c249f764ba bugzilla: https://gitee.com/openeuler/kernel/issues/I9MPZ8 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=37ca196aa4d8aa5529f44d776051b3c249f764ba -------------------------------- 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 <aliceryhl@google.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Cc: stable@vger.kernel.org Fixes: 2f7ab12 ("Kbuild: add Rust support") Link: https://lore.kernel.org/r/20240308-constructors-v1-1-4c811342391c@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: ZhangPeng <zhangpeng362@huawei.com>
1 parent 9da77e1 commit ac05d44

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
@@ -2058,7 +2058,6 @@ config RUST
20582058
depends on !GCC_PLUGINS
20592059
depends on !RANDSTRUCT
20602060
depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
2061-
select CONSTRUCTORS
20622061
help
20632062
Enables Rust support in the kernel.
20642063

0 commit comments

Comments
 (0)