]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Kbuild: suppress packed-not-aligned warning for default setting only
authorXiongfeng Wang <xiongfeng.wang@linaro.org>
Thu, 11 Jan 2018 09:22:29 +0000 (17:22 +0800)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:00 +0000 (09:45 -0600)
commit7be372e6c4a5a29db75375aee243de2cfa4fb791
treeb325e72f51589ea0a13bc7a12e9c72259d9da470
parentdbc963089c011f2e8fde3dbbabc3f62f0f26e741
Kbuild: suppress packed-not-aligned warning for default setting only

BugLink: https://bugs.launchpad.net/bugs/1837161
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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
scripts/Makefile.extrawarn