Skip to content

Commit 06bb7fc

Browse files
arndbakpm00
authored andcommitted
kbuild: turn on -Wrestrict by default
All known -Wrestrict warnings are addressed now, so don't disable the warning any more. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]> Cc: Kees Cook <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Nicolas Schier <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 2c1460d commit 06bb7fc

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
@@ -98,7 +98,6 @@ else
9898
# Suppress them by using -Wno... except for W=1.
9999
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
100100
KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
101-
KBUILD_CFLAGS += $(call cc-disable-warning, restrict)
102101
KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned)
103102
KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
104103
KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation)

0 commit comments

Comments
 (0)