From 7d2baa6cd08fb41210921e2f4e0e2eb937c7a9c1 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 1 May 2019 11:05:41 -0700 Subject: [PATCH] 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 --- Makefile | 1 + 1 file changed, 1 insertion(+) 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,) -- 2.7.4