Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: enable -Wcast-function-type-strict unconditionally

All known function cast warnings are now addressed, so the warning can be
enabled globally to catch new ones more quickly.

Link: https://lkml.kernel.org/r/20240415122037.1983124-6-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nicolas Schier <nicolas@fjasle.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Arnd Bergmann and committed by
Andrew Morton
bd2a70e9 908dd508

-1
-1
scripts/Makefile.extrawarn
··· 129 129 KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) 130 130 KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare 131 131 KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access) 132 - KBUILD_CFLAGS += $(call cc-disable-warning, cast-function-type-strict) 133 132 KBUILD_CFLAGS += -Wno-enum-compare-conditional 134 133 KBUILD_CFLAGS += -Wno-enum-enum-conversion 135 134 endif