disable stringop truncation warnings for now 95/220295/1
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 30 Aug 2018 21:47:28 +0000 (07:47 +1000)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 16 Dec 2019 10:06:21 +0000 (19:06 +0900)
commit 217c3e0196758662aa0429863b09d1c13da1c5d6 upstream.

They are too noisy

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[sw0312.kim: cherry-pick stable linux-3.18.y commit de050e1a28fe for gcc 9 build]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I8b734501ad0e49aebb30feb3c066f6b16b435465

Makefile

index 3201c5990e069e3d060b14a0bc02b760f62fb685..af0ad9be835602313d4856cf8a5182c0c0333834 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -763,6 +763,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
 # disable pointer signed / unsigned warnings in gcc 4.0
 KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
 
+# disable stringop warnings in gcc 8+
+KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
+
 # disable invalid "can't wrap" optimizations for signed / pointers
 KBUILD_CFLAGS  += $(call cc-option,-fno-strict-overflow)