提交 d2079662 编写于 作者: G Gustavo A. R. Silva 提交者: Martin K. Petersen

scsi: hptiop: Replace one-element array with flexible-array member in struct...

scsi: hptiop: Replace one-element array with flexible-array member in struct hpt_iop_request_ioctl_command()

One-element arrays are deprecated, and we are replacing them with flexible
array members instead. So, replace one-element array with flexible-array
member in struct hpt_iop_request_ioctl_command.

Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/205
Link: https://lore.kernel.org/r/YyyUvuId7dAZadej@workReviewed-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 5b12a568
...@@ -237,7 +237,7 @@ struct hpt_iop_request_ioctl_command { ...@@ -237,7 +237,7 @@ struct hpt_iop_request_ioctl_command {
__le32 inbuf_size; __le32 inbuf_size;
__le32 outbuf_size; __le32 outbuf_size;
__le32 bytes_returned; __le32 bytes_returned;
u8 buf[1]; u8 buf[];
/* out data should be put at buf[(inbuf_size+3)&~3] */ /* out data should be put at buf[(inbuf_size+3)&~3] */
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册