* [PATCH] correct disabling of -Wstringop-overflow
@ 2025-04-14 14:22 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2025-04-14 14:22 UTC (permalink / raw)
To: linux-kbuild@vger.kernel.org
Cc: Masahiro Yamada, Nathan Chancellor, Nicolas Schier
As was done up to 6.5, disabling of warnings needs to probe for the
positive command line option. Hence why there is cc-disable-warning.
Fixes: a5e0ace04fbf ("init: Kconfig: Disable -Wstringop-overflow for GCC-11")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/Makefile
+++ b/Makefile
@@ -1054,7 +1054,7 @@ NOSTDINC_FLAGS += -nostdinc
KBUILD_CFLAGS += $(call cc-option, -fstrict-flex-arrays=3)
#Currently, disable -Wstringop-overflow for GCC 11, globally.
-KBUILD_CFLAGS-$(CONFIG_CC_NO_STRINGOP_OVERFLOW) += $(call cc-option, -Wno-stringop-overflow)
+KBUILD_CFLAGS-$(CONFIG_CC_NO_STRINGOP_OVERFLOW) += $(call cc-disable-warning,stringop-overflow)
KBUILD_CFLAGS-$(CONFIG_CC_STRINGOP_OVERFLOW) += $(call cc-option, -Wstringop-overflow)
# disable invalid "can't wrap" optimizations for signed / pointers
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-14 14:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14 14:22 [PATCH] correct disabling of -Wstringop-overflow Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox