summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-07-03 14:48:46 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-07-06 04:41:57 +0300
commit47699a2b63caaa0de4841d4402627c2fdf3452a6 (patch)
treebab8353b76c7edce9892803725963ca525cdad13 /include/uapi
parent89f7ef7f2b23b2a7b8ce346c23161916eae5b15c (diff)
downloadlinux-47699a2b63caaa0de4841d4402627c2fdf3452a6.tar.xz
scsi: aacraid: Avoid -Warray-bounds warning
The one-element array in aac_aifcmd is actually meant as a flexible array, and causes an overflow warning that can be avoided using the normal flex arrays: drivers/scsi/aacraid/commsup.c:1166:17: error: array index 1 is past the end of the array (that has type 'u8[1]' (aka 'unsigned char[1]'), cast to '__le32 *' (aka 'unsigned int *')) [-Werror,-Warray-bounds] (((__le32 *)aifcmd->data)[1] == cpu_to_le32(3)); ^ ~ Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20230703114851.1194510-1-arnd@kernel.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions