[PATCH] init/Kconfig: Only block on RANDSTRUCT for RUST

From: Neal Gompa
Date: Tue Jul 30 2024 - 23:23:12 EST


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@xxxxxxxxx>
---
init/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/init/Kconfig b/init/Kconfig
index a465ea9525bd..ff4ecfa62569 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1900,8 +1900,8 @@ config RUST
depends on RUST_IS_AVAILABLE
depends on !CFI_CLANG
depends on !MODVERSIONS
- depends on !GCC_PLUGINS
- depends on !RANDSTRUCT
+ depends on !GCC_PLUGIN_RANDSTRUCT
+ depends on RANDSTRUCT_NONE
depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
help
Enables Rust support in the kernel.
--
2.45.2