Kbuild: suppress packed-not-aligned warning for default setting only 96/220296/1
authorXiongfeng Wang <xiongfeng.wang@linaro.org>
Thu, 11 Jan 2018 09:22:29 +0000 (17:22 +0800)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 16 Dec 2019 10:11:10 +0000 (19:11 +0900)
commit5eab395f2969c79678d2811a8a342d8876040999
treec436d23dd916395bcdce4b7c68c6c7529ac9789d
parentb7c248285bc0da515a60679391091360ca16abf7
Kbuild: suppress packed-not-aligned warning for default setting only

commit 321cb0308a9e76841394b4bbab6a1107cfedbae0 upstream.

gcc-8 reports many -Wpacked-not-aligned warnings. The below are some
examples.

./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct
ceph_entity_addr' is less than 8 [-Wpacked-not-aligned]
 } __attribute__ ((packed));

./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct
ceph_entity_addr' is less than 8 [-Wpacked-not-aligned]
 } __attribute__ ((packed));

./include/linux/ceph/msgr.h:67:1: warning: alignment 1 of 'struct
ceph_entity_addr' is less than 8 [-Wpacked-not-aligned]
 } __attribute__ ((packed));

This patch suppresses this kind of warnings for default setting.

Signed-off-by: Xiongfeng Wang <xiongfeng.wang@linaro.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[sw0312.kim: cherry-pick stable linux-3.18.y commit 7b1fe42a5e15 for gcc 9 build]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Id1e9b809a6b71bfca34221617e3fed3e2a379abc
scripts/Makefile.extrawarn