Skip to content

Commit 782d092

Browse files
committed
rust: depend on !RANDSTRUCT
Clang 15 will support structure layout randomization, and the kernel has reorganized the Kconfig options in preparation, see commit 595b893 ("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/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 29c2a45 commit 782d092

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1916,6 +1916,7 @@ config RUST
19161916
depends on RUST_IS_AVAILABLE
19171917
depends on !MODVERSIONS
19181918
depends on !GCC_PLUGINS
1919+
depends on !RANDSTRUCT
19191920
depends on !DEBUG_INFO_BTF
19201921
select CONSTRUCTORS
19211922
help

0 commit comments

Comments
 (0)