diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-01 11:05:41 -0700 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2019-12-26 12:51:35 +0900 |
commit | 71968f24843556c1678615b8ad7d993b2451f5c2 (patch) | |
tree | 066ef361c8da95cd25e10294aff2a953d7d19a1c | |
parent | 97f3e0bddd7d6e672927ecec132d248b5a8c4f16 (diff) | |
download | emulator-kernel-71968f24843556c1678615b8ad7d993b2451f5c2.tar.gz emulator-kernel-71968f24843556c1678615b8ad7d993b2451f5c2.tar.bz2 emulator-kernel-71968f24843556c1678615b8ad7d993b2451f5c2.zip |
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 <torvalds@linux-foundation.org>
[a.kazmin: cherry-pick mainline commit 6f303d60534c4 for gcc 9 build]
Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
Change-Id: I43cefa7a44a5cdb299ef4a8c97d2f45d7dd999e2
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -622,6 +622,7 @@ 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) +KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os |