diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-12-15 11:05:13 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-01-16 07:27:51 +0100 |
commit | 9fbd5a0931ed879f9f0a9768086da90aed6328e8 (patch) | |
tree | 2979fa6cfb19b7bef80c4990f003841c456b0ccc | |
parent | 551f413434737a2a570af4555b4139898568ed57 (diff) | |
download | op-kernel-dev-9fbd5a0931ed879f9f0a9768086da90aed6328e8.zip op-kernel-dev-9fbd5a0931ed879f9f0a9768086da90aed6328e8.tar.gz |
s390/cio: get rid of variable length array
Use a flexible array instead. The size of the structure is not used
within chsc_sstpi, therefore no change in semantics but one less
sparse warning:
drivers/s390/cio/chsc.c:1219:27: warning: Variable length array is used.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | drivers/s390/cio/chsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c index 1167469..928d114 100644 --- a/drivers/s390/cio/chsc.c +++ b/drivers/s390/cio/chsc.c @@ -1216,7 +1216,7 @@ int chsc_sstpi(void *page, void *result, size_t size) struct chsc_header request; unsigned int rsvd0[3]; struct chsc_header response; - char data[size]; + char data[]; } __attribute__ ((packed)) *rr; int rc; |