]> git.baikalelectronics.ru Git - kernel.git/commit
s390/chsc: fix packed-not-aligned warnings
authorSebastian Ott <sebott@linux.ibm.com>
Mon, 25 Jun 2018 12:25:59 +0000 (14:25 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 17 Jul 2018 05:27:56 +0000 (07:27 +0200)
commit39c3dbba3c38b645ae68d0199ba9a0414fcde388
tree9119ff27b6d91786b6bd6ad25732e582dcf3e387
parentae26f9b453c25c4c24a8f4219fe3595533e59f5e
s390/chsc: fix packed-not-aligned warnings

Remove attribute packed where possible failing this add proper alignment
information to fix warnings like the one below:

drivers/s390/cio/chsc.c: In function 'chsc_siosl':
drivers/s390/cio/chsc.c:1287:2: warning: alignment 1 of 'struct <anonymous>' is less than 4 [-Wpacked-not-aligned]
  } __attribute__ ((packed)) *siosl_area;

Note: this patch should be a nop since non of these structs use auto
storage but allocated pages. However there are changes to the generated
code because of additional padding at the end of some of the structs due
to alignment when memset(foo, 0, sizeof(*foo)) is used.

Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/uapi/asm/chsc.h
drivers/s390/cio/chsc.c
drivers/s390/cio/chsc.h