summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Schier <nsc@kernel.org>2025-11-08 12:16:41 +0100
committerNicolas Schier <nsc@kernel.org>2025-11-08 12:16:41 +0100
commit9716818d615a1472279436cb7d5dfed136f41ca9 (patch)
tree308ea8768393c29e31b754d714cf8cfe1d1cc725 /Makefile
parent211ddde0823f1442e4ad052a2f30f050145ccada (diff)
parent5ff8ad3909524ad55297a434f87c238224825bf4 (diff)
Merge tag 'kbuild-ms-extensions-6.19' into kbuild-next
Shared branch between Kbuild and other trees for enabling '-fms-extensions' for 6.19 Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Nicolas Schier <nsc@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d14824792227..79b631075d33 100644
--- a/Makefile
+++ b/Makefile
@@ -1061,6 +1061,9 @@ NOSTDINC_FLAGS += -nostdinc
# perform bounds checking.
KBUILD_CFLAGS += $(call cc-option, -fstrict-flex-arrays=3)
+# Allow including a tagged struct or union anonymously in another struct/union.
+KBUILD_CFLAGS += -fms-extensions
+
# disable invalid "can't wrap" optimizations for signed / pointers
KBUILD_CFLAGS += -fno-strict-overflow