]> git.baikalelectronics.ru Git - kernel.git/commitdiff
x86/defconfig: Enable WERROR
authorBorislav Petkov <bp@suse.de>
Wed, 23 Mar 2022 11:21:10 +0000 (12:21 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 24 Mar 2022 08:10:56 +0000 (09:10 +0100)
To quote Linus:

  "EVERYBODY should have CONFIG_WERROR=y on at least x86-64 and other
   serious architectures, unless you have some completely random
   experimental (and broken) compiler.

New compiler warnings are not acceptable."

So this should make at least the most obvious and common ones not go
unnoticed.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/YjsCpoRK7W4l6tSh@zn.tnic
arch/x86/configs/i386_defconfig
arch/x86/configs/x86_64_defconfig

index 71124cf8630c75a027261153389d738f027d7f0e..4b2085243aa3aec3bacb43e7e8b01a238101b30f 100644 (file)
@@ -262,3 +262,4 @@ CONFIG_PROVIDE_OHCI1394_DMA_INIT=y
 CONFIG_EARLY_PRINTK_DBGP=y
 CONFIG_DEBUG_BOOT_PARAMS=y
 CONFIG_KALLSYMS_ALL=y
+CONFIG_WERROR=y
index 92b1169ec90b20a9326ef6ed45f4dd8f60b0600a..38c52e4eb30b87610fb709bdcd3fce1f697725f8 100644 (file)
@@ -258,3 +258,4 @@ CONFIG_PROVIDE_OHCI1394_DMA_INIT=y
 CONFIG_EARLY_PRINTK_DBGP=y
 CONFIG_DEBUG_BOOT_PARAMS=y
 CONFIG_KALLSYMS_ALL=y
+CONFIG_WERROR=y