aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/lsi/mpi.h
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2021-03-22 16:46:59 +0000
committerMartin K. Petersen <[email protected]>2021-04-02 02:59:43 +0000
commit5b11c9d80bde81f6896cc85b23aeaa9502a704ed (patch)
tree0e777668a12878290ab136aeacc388cdd39fb7ba /drivers/message/fusion/lsi/mpi.h
parentscsi: lpfc: Fix gcc -Wstringop-overread warning (diff)
downloadkernel-5b11c9d80bde81f6896cc85b23aeaa9502a704ed.tar.gz
kernel-5b11c9d80bde81f6896cc85b23aeaa9502a704ed.zip
scsi: fcoe: Fix mismatched fcoe_wwn_from_mac declaration
An old cleanup changed the array size from MAX_ADDR_LEN to unspecified in the declaration, but now gcc-11 warns about this: drivers/scsi/fcoe/fcoe_ctlr.c:1972:37: error: argument 1 of type ‘unsigned char[32]’ with mismatched bound [-Werror=array-parameter=] 1972 | u64 fcoe_wwn_from_mac(unsigned char mac[MAX_ADDR_LEN], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from /git/arm-soc/drivers/scsi/fcoe/fcoe_ctlr.c:33: include/scsi/libfcoe.h:252:37: note: previously declared as ‘unsigned char[]’ 252 | u64 fcoe_wwn_from_mac(unsigned char mac[], unsigned int, unsigned int); | ~~~~~~~~~~~~~~^~~~~ Change the type back to what the function definition uses. Link: https://lore.kernel.org/r/[email protected] Fixes: fdd78027fd47 ("[SCSI] fcoe: cleans up libfcoe.h and adds fcoe.h for fcoe module") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi.h')
0 files changed, 0 insertions, 0 deletions