From: Heiko Carstens Date: Thu, 15 Dec 2016 10:05:13 +0000 (+0100) Subject: s390/cio: get rid of variable length array X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9fbd5a0931ed879f9f0a9768086da90aed6328e8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c index 11674698b36d..928d11454b7e 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;