]> Gentwo Git Trees - linux/.git/commit
compiler_types.h: Move __nocfi out of compiler-specific header
authorKees Cook <kees@kernel.org>
Thu, 4 Sep 2025 03:46:40 +0000 (20:46 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 4 Sep 2025 19:59:07 +0000 (21:59 +0200)
commit038c7dc66e2744e5df57163b8f957745ae10d23e
tree5561d6d660997bf5715ae10d19d3ff87d105e6f5
parent894af4a1cde61c3401f237184fb770f72ff12df8
compiler_types.h: Move __nocfi out of compiler-specific header

Prepare for GCC KCFI support and move the __nocfi attribute from
compiler-clang.h to compiler_types.h. This was already gated by
CONFIG_CFI_CLANG, so this remains safe for non-KCFI GCC builds.

Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20250904034656.3670313-1-kees@kernel.org
include/linux/compiler-clang.h
include/linux/compiler_types.h