Skip to content

Commit bd2a70e

Browse files
arndbakpm00
authored andcommitted
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>
1 parent 908dd50 commit bd2a70e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

scripts/Makefile.extrawarn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ endif
129129
KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast)
130130
KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare
131131
KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access)
132-
KBUILD_CFLAGS += $(call cc-disable-warning, cast-function-type-strict)
133132
KBUILD_CFLAGS += -Wno-enum-compare-conditional
134133
KBUILD_CFLAGS += -Wno-enum-enum-conversion
135134
endif

0 commit comments

Comments
 (0)