mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 09:46:44 +07:00
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>
This commit is contained in:
parent
551f413434
commit
9fbd5a0931
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user