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

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: move -fzero-init-padding-bits=all to the top-level Makefile

The -fzero-init-padding-bits=all option is not a warning flag, so
defining it in scripts/Makefile.extrawarn is inconsistent.

Move it to the top-level Makefile for consistency.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>

+3 -3
+3
Makefile
··· 928 928 endif 929 929 endif 930 930 931 + # Explicitly clear padding bits during variable initialization 932 + KBUILD_CFLAGS += $(call cc-option,-fzero-init-padding-bits=all) 933 + 931 934 # While VLAs have been removed, GCC produces unreachable stack probes 932 935 # for the randomize_kstack_offset feature. Disable it for all compilers. 933 936 KBUILD_CFLAGS += $(call cc-option, -fno-stack-clash-protection)
-3
scripts/Makefile.extrawarn
··· 82 82 # Warn if there is an enum types mismatch 83 83 KBUILD_CFLAGS += $(call cc-option,-Wenum-conversion) 84 84 85 - # Explicitly clear padding bits during variable initialization 86 - KBUILD_CFLAGS += $(call cc-option,-fzero-init-padding-bits=all) 87 - 88 85 KBUILD_CFLAGS += -Wextra 89 86 KBUILD_CFLAGS += -Wunused 90 87