]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: don't select CONSTRUCTORS
authorAlice Ryhl <aliceryhl@google.com>
Fri, 8 Mar 2024 09:36:31 +0000 (09:36 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 31 Mar 2024 18:44:55 +0000 (20:44 +0200)
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: 2f7ab1267dc9 ("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>
init/Kconfig

index aa02aec6aa7d29432f1974003900fce14bf14452..b9a336a3d7d8fde3ad0b5a0390827cb919bb9178 100644 (file)
@@ -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.