[PATCH v2 02/16] security/Kconfig.hardening: Remove tautological condition from CC_HAS_ZERO_CALL_USED_REGS

Arnd Bergmann arnd at arndb.de
Mon May 18 07:48:47 UTC 2026


On Mon, May 18, 2026, at 01:05, Nathan Chancellor wrote:
> Now that the minimum supported version of LLVM for building the kernel
> has been raised to 17.0.1, the '!Clang || Clang > 15.0.6' dependency for
> CONFIG_CC_HAS_ZERO_CALL_USED_REGS is always true, so it can be removed.
>
> Reviewed-by: Nicolas Schier <nsc at kernel.org>
> Signed-off-by: Nathan Chancellor <nathan at kernel.org>

Acked-by: Arnd Bergmann <arnd at arndb.de>

>  config CC_HAS_ZERO_CALL_USED_REGS
>  	def_bool $(cc-option,-fzero-call-used-regs=used-gpr)
> -	# https://github.com/ClangBuiltLinux/linux/issues/1766
> -	# https://github.com/llvm/llvm-project/issues/59242
> -	depends on !CC_IS_CLANG || CLANG_VERSION > 150006
> 

Maybe add a comment to mention that this now requires gcc-11,
that way we have it easier to remove the check when that becomes
the minimum version.

       Arnd



More information about the Linux-security-module-archive mailing list