summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2018-08-31 07:47:28 +1000
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-12-23 15:12:12 +0900
commitfd04e46faba4d8c2e80952f6f5f67f36e3e6ec8c (patch)
treefffca7f498397519a906f4fc98432d6b343c18af
parent81e195d1452fe17a8e5205a3e8a77cfac4bb1835 (diff)
downloadlinux-4.9-exynos9110-fd04e46faba4d8c2e80952f6f5f67f36e3e6ec8c.tar.gz
linux-4.9-exynos9110-fd04e46faba4d8c2e80952f6f5f67f36e3e6ec8c.tar.bz2
linux-4.9-exynos9110-fd04e46faba4d8c2e80952f6f5f67f36e3e6ec8c.zip
disable stringop truncation warnings for now
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-4.9.y commit 5e2669c978b2 for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I57286951ce59491105cc89ec99277a180b3c7478
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 318b90d3b701..172dda944484 100644
--- a/Makefile
+++ b/Makefile
@@ -791,6 +791,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)