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/383b1045-94c5-c2b0-57db-9f4f4760206c@intel.com/ Reported-by: kernel test robot <yujie.liu@intel.com> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 29c2a45 commit 782d092

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init/Kconfig

Lines changed: 1 addition & 0 deletions
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)