]> git.baikalelectronics.ru Git - kernel.git/commit
s390/boot: disable address-of-packed-member warning
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 4 Jun 2019 11:10:51 +0000 (13:10 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 7 Jun 2019 08:10:04 +0000 (10:10 +0200)
commit59bfdcac3c76395edcf2a207eef6d1a14aab1abc
treebad75441e878569c7bdd57f9c94ba71f8ee5997b
parent62acf0b731702db94d8b720f24ab3e787c4ced9a
s390/boot: disable address-of-packed-member warning

Get rid of gcc9 warnings like this:

arch/s390/boot/ipl_report.c: In function 'find_bootdata_space':
arch/s390/boot/ipl_report.c:42:26: warning: taking address of packed member of 'struct ipl_rb_components' may result in an unaligned pointer value [-Waddress-of-packed-member]
   42 |  for_each_rb_entry(comp, comps)
      |                          ^~~~~

This is effectively the s390 variant of commit d5a64e92fa3d
("x86/boot: Disable the address-of-packed-member compiler warning").

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/Makefile