From: Greg Kroah-Hartman Date: Fri, 21 Jul 2017 07:37:59 +0000 (+0200) Subject: 4.4-stable patches X-Git-Tag: v3.18.63~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=406e5514ee52e07c52e114a9b60b0aed98059813;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: disable-new-gcc-7.1.1-warnings-for-now.patch --- diff --git a/queue-4.4/disable-new-gcc-7.1.1-warnings-for-now.patch b/queue-4.4/disable-new-gcc-7.1.1-warnings-for-now.patch new file mode 100644 index 00000000000..75bf7649fde --- /dev/null +++ b/queue-4.4/disable-new-gcc-7.1.1-warnings-for-now.patch @@ -0,0 +1,48 @@ +From bd664f6b3e376a8ef4990f87d08271cc2d01ba9a Mon Sep 17 00:00:00 2001 +From: Linus Torvalds +Date: Wed, 12 Jul 2017 19:25:47 -0700 +Subject: disable new gcc-7.1.1 warnings for now + +From: Linus Torvalds + +commit bd664f6b3e376a8ef4990f87d08271cc2d01ba9a upstream. + +I made the mistake of upgrading my desktop to the new Fedora 26 that +comes with gcc-7.1.1. + +There's nothing wrong per se that I've noticed, but I now have 1500 +lines of warnings, mostly from the new format-truncation warning +triggering all over the tree. + +We use 'snprintf()' and friends in a lot of places, and often know that +the numbers are fairly small (ie a controller index or similar), but gcc +doesn't know that, and sees an 'int', and thinks that it could be some +huge number. And then complains when our buffers are not able to fit +the name for the ten millionth controller. + +These warnings aren't necessarily bad per se, and we probably want to +look through them subsystem by subsystem, but at least during the merge +window they just mean that I can't even see if somebody is introducing +any *real* problems when I pull. + +So warnings disabled for now. + +Signed-off-by: Linus Torvalds +Signed-off-by: Greg Kroah-Hartman + +--- + Makefile | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/Makefile ++++ b/Makefile +@@ -619,6 +619,9 @@ include arch/$(SRCARCH)/Makefile + KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) + KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,) + KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) ++KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation) ++KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) ++KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) + + ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE + KBUILD_CFLAGS += -Os