Patch "rust: don't select CONSTRUCTORS" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    rust: don't select CONSTRUCTORS

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rust-don-t-select-constructors.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 7d49f53af4b988b188d3932deac2c9c80fd7d9ce Mon Sep 17 00:00:00 2001
From: Alice Ryhl <aliceryhl@xxxxxxxxxx>
Date: Fri, 8 Mar 2024 09:36:31 +0000
Subject: rust: don't select CONSTRUCTORS

From: Alice Ryhl <aliceryhl@xxxxxxxxxx>

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@xxxxxxxxxx>
Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>
Cc: stable@xxxxxxxxxxxxxxx
Fixes: 2f7ab1267dc9 ("Kbuild: add Rust support")
Link: https://lore.kernel.org/r/20240308-constructors-v1-1-4c811342391c@xxxxxxxxxx
Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 init/Kconfig |    1 -
 1 file changed, 1 deletion(-)

--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1898,7 +1898,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.
 


Patches currently in stable-queue which might be from aliceryhl@xxxxxxxxxx are

queue-6.6/rust-remove-params-from-module-macro-example.patch
queue-6.6/kbuild-rust-remove-unneeded-rustc_cfg-to-avoid-ice.patch
queue-6.6/rust-don-t-select-constructors.patch
queue-6.6/rust-kernel-require-send-for-module-implementations.patch
queue-6.6/rust-init-remove-impl-zeroable-for-infallible.patch
queue-6.6/kbuild-rust-force-alloc-extern-to-allow-empty-rust-files.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux