kbuild: enable -Wcast-function-type-strict unconditionally
authorArnd Bergmann <arnd@arndb.de>
Mon, 15 Apr 2024 12:20:36 +0000 (14:20 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 19 May 2024 21:36:16 +0000 (14:36 -0700)
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>
scripts/Makefile.extrawarn

index 202e26e6f29fc1df7d9940b2989c02295ec3d75f..1d13cecc7cc7808610e635ddc03476cf92b3a8c1 100644 (file)
@@ -129,7 +129,6 @@ endif
 KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast)
 KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare
 KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access)
-KBUILD_CFLAGS += $(call cc-disable-warning, cast-function-type-strict)
 KBUILD_CFLAGS += -Wno-enum-compare-conditional
 KBUILD_CFLAGS += -Wno-enum-enum-conversion
 endif