[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240731125615.3368813-1-neal@gompa.dev>
Date: Wed, 31 Jul 2024 08:54:28 -0400
From: Neal Gompa <neal@...pa.dev>
To: rust-for-linux@...r.kernel.org
Cc: asahi@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Miguel Ojeda <ojeda@...nel.org>,
Hector Martin <marcan@...can.st>,
Janne Grunau <j@...nau.net>,
Asahi Lina <lina@...hilina.net>,
Neal Gompa <neal@...pa.dev>
Subject: [PATCH v2] init/Kconfig: Only block on RANDSTRUCT for RUST
When enabling Rust in the kernel, we only need to block on the
RANDSTRUCT feature and GCC plugin. The rest of the GCC plugins
are reasonably safe to enable.
Signed-off-by: Neal Gompa <neal@...pa.dev>
---
Changes in v2
- Drop changing !RANDSTRUCT to RANDSTRUCT_NONE
(they're equivalent anyway)
---
init/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init/Kconfig b/init/Kconfig
index a465ea9525bd..0939486938cc 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1900,7 +1900,7 @@ config RUST
depends on RUST_IS_AVAILABLE
depends on !CFI_CLANG
depends on !MODVERSIONS
- depends on !GCC_PLUGINS
+ depends on !GCC_PLUGIN_RANDSTRUCT
depends on !RANDSTRUCT
depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
help
--
2.45.2
Powered by blists - more mailing lists