From: Linus Torvalds Date: Wed, 1 May 2019 18:05:41 +0000 (-0700) Subject: gcc-9: silence 'address-of-packed-member' warning X-Git-Tag: accepted/tizen/unified/20191219.143658~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d2baa6cd08fb41210921e2f4e0e2eb937c7a9c1;p=profile%2Fmobile%2Fplatform%2Fkernel%2Flinux-3.10-sc7730.git gcc-9: silence 'address-of-packed-member' warning We already did this for clang, but now gcc has that warning too. Yes, yes, the address may be unaligned. And that's kind of the point. Signed-off-by: Linus Torvalds [sw0312.kim: cherry-pick mainline commit 6f303d60534c for gcc 9 build] Signed-off-by: Seung-Woo Kim Change-Id: I2e4fb85329412ecf3acdeee02ae44bb3082ce921 --- diff --git a/Makefile b/Makefile index 6d67e87..60d571a 100644 --- a/Makefile +++ b/Makefile @@ -574,6 +574,7 @@ all: vmlinux 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) +KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)