]> git.baikalelectronics.ru Git - kernel.git/commitdiff
gcc-10: disable 'stringop-overflow' warning for now
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 May 2020 22:40:52 +0000 (15:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 May 2020 22:40:52 +0000 (15:40 -0700)
This is the final array bounds warning removal for gcc-10 for now.

Again, the warning is good, and we should re-enable all these warnings
when we have converted all the legacy array declaration cases to
flexible arrays. But in the meantime, it's just noise.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Makefile

index b4c88f0eb6fee4142b397e4eb4e39b16d29d4ebc..abdb355d3f465fb63bbca4ae46fc54c948c899e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -880,6 +880,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
 # We'll want to enable this eventually, but it's not going away for 5.7 at least
 KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds)
 KBUILD_CFLAGS += $(call cc-disable-warning, array-bounds)
+KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overflow)
 
 # Enabled with W=2, disabled by default as noisy
 KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)