aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/build_assert.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2024-09-28 18:13:13 +0000
committerKees Cook <[email protected]>2024-09-28 20:56:03 +0000
commitdd3a7ee91e0ce0b03d22e974a79e8247cc99959b (patch)
tree42987997fec506ada95a06252ad99ca6e534bd45 /rust/helpers/build_assert.c
parentMAINTAINERS: Add unsafe_memcpy() to the FORTIFY review list (diff)
downloadkernel-dd3a7ee91e0ce0b03d22e974a79e8247cc99959b.tar.gz
kernel-dd3a7ee91e0ce0b03d22e974a79e8247cc99959b.zip
hardening: Adjust dependencies in selection of MODVERSIONS
MODVERSIONS recently grew a dependency on !COMPILE_TEST so that Rust could be more easily tested. However, this introduces a Kconfig warning when building allmodconfig with a clang version that supports RANDSTRUCT natively because RANDSTRUCT_FULL and RANDSTRUCT_PERFORMANCE select MODVERSIONS when MODULES is enabled, bypassing the !COMPILE_TEST dependency: WARNING: unmet direct dependencies detected for MODVERSIONS Depends on [n]: MODULES [=y] && !COMPILE_TEST [=y] Selected by [y]: - RANDSTRUCT_FULL [=y] && (CC_HAS_RANDSTRUCT [=y] || GCC_PLUGINS [=n]) && MODULES [=y] Add the !COMPILE_TEST dependency to the selections to clear up the warning. Fixes: 1f9c4a996756 ("Kbuild: make MODVERSIONS support depend on not being a compile test build") Signed-off-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/20240928-fix-randstruct-modversions-kconfig-warning-v1-1-27d3edc8571e@kernel.org Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'rust/helpers/build_assert.c')
0 files changed, 0 insertions, 0 deletions