提交 9fbd5a09 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

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: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 551f4134
...@@ -1216,7 +1216,7 @@ int chsc_sstpi(void *page, void *result, size_t size) ...@@ -1216,7 +1216,7 @@ int chsc_sstpi(void *page, void *result, size_t size)
struct chsc_header request; struct chsc_header request;
unsigned int rsvd0[3]; unsigned int rsvd0[3];
struct chsc_header response; struct chsc_header response;
char data[size]; char data[];
} __attribute__ ((packed)) *rr; } __attribute__ ((packed)) *rr;
int rc; int rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册