s390/cio: get rid of variable length array
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 15 Dec 2016 10:05:13 +0000 (11:05 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Jan 2017 06:27:51 +0000 (07:27 +0100)
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>
drivers/s390/cio/chsc.c

index 1167469..928d114 100644 (file)
@@ -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;