From 782d092900f0f140774f635369371896cce5f3d3 Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Tue, 2 Aug 2022 00:40:20 +0200 Subject: [PATCH] rust: depend on `!RANDSTRUCT` Clang 15 will support structure layout randomization, and the kernel has reorganized the Kconfig options in preparation, see commit 595b893e2087 ("randstruct: Reorganize Kconfigs and attribute macros"). Thus depend ourselves on `!RANDSTRUCT` until we figure out a way to handle it in `bindgen` (or go through a C function etc.). Some of the Rust code we have in the `kernel` crate does not support it in any case. Link: https://lore.kernel.org/lkml/383b1045-94c5-c2b0-57db-9f4f4760206c@intel.com/ Reported-by: kernel test robot Signed-off-by: Miguel Ojeda --- init/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/init/Kconfig b/init/Kconfig index 36be24571ee2a6..6f62dbea8283fb 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1916,6 +1916,7 @@ config RUST depends on RUST_IS_AVAILABLE depends on !MODVERSIONS depends on !GCC_PLUGINS + depends on !RANDSTRUCT depends on !DEBUG_INFO_BTF select CONSTRUCTORS help