summaryrefslogtreecommitdiff
path: root/drivers/scsi/qlogicfas408.c
diff options
context:
space:
mode:
authorNilesh Javali <njavali@marvell.com>2023-08-31 16:51:45 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2023-09-05 05:34:14 -0400
commit0be7592885d7b4c20595c388adc13930b653b847 (patch)
treef3de3b5fe97f25b9f5e446eaa7f4e324109b6db9 /drivers/scsi/qlogicfas408.c
parent31a0865bf593e59c4433a3624b4c87c40049ed9a (diff)
downloadlwn-0be7592885d7b4c20595c388adc13930b653b847.tar.gz
lwn-0be7592885d7b4c20595c388adc13930b653b847.zip
scsi: qla2xxx: Correct endianness for rqstlen and rsplen
rqstlen and rsplen were changed to __le32 to fix sparse warnings: drivers/scsi/qla2xxx/qla_nvme.c:402:30: warning: incorrect type in assignment (different base types) drivers/scsi/qla2xxx/qla_nvme.c:402:30: expected restricted __le32 [usertype] cmd_len drivers/scsi/qla2xxx/qla_nvme.c:402:30: got unsigned short [usertype] rsplen drivers/scsi/qla2xxx/qla_nvme.c:507:30: warning: incorrect type in assignment (different base types) drivers/scsi/qla2xxx/qla_nvme.c:507:30: expected restricted __le32 [usertype] cmd_len drivers/scsi/qla2xxx/qla_nvme.c:507:30: got unsigned int [usertype] rqstlen drivers/scsi/qla2xxx/qla_nvme.c:508:30: warning: incorrect type in assignment (different base types) drivers/scsi/qla2xxx/qla_nvme.c:508:30: expected restricted __le32 [usertype] rsp_len drivers/scsi/qla2xxx/qla_nvme.c:508:30: got unsigned int [usertype] rsplen Correct the endianness in qla2xxx driver thus avoiding changes in nvme-fc-driver.h. Fixes: 875386b98857 ("scsi: qla2xxx: Add Unsolicited LS Request and Response Support for NVMe") Signed-off-by: Nilesh Javali <njavali@marvell.com> Link: https://lore.kernel.org/r/20230831112146.32595-1-njavali@marvell.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qlogicfas408.c')
0 files changed, 0 insertions, 0 deletions