]> git.baikalelectronics.ru Git - kernel.git/commit
qla2xxx: Fix NVMe entry_type for iocb packet on BE system
authorHimanshu Madhani <himanshu.madhani@cavium.com>
Sat, 1 Jul 2017 02:32:53 +0000 (19:32 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 1 Jul 2017 21:20:42 +0000 (17:20 -0400)
commita48ebc66419aa8157f87c8ca6ee1931cf6814535
tree33bf6885c0003a3f1625108eed90c3ba80d10e1c
parent78e67ae62d2bb3b70166de6b468346e849df30e1
qla2xxx: Fix NVMe entry_type for iocb packet on BE system

This patch fixes incorrect assignment for entry_type field for Continuation
Type iocb packet on BE system. This was caught by -Woverflow warning on BE
system compilation.

For Continuation Type iocb driver needs to write complete 32 bit value to
initialize other field members in structure to 0.

Following warning is seen on BE system compile:

drivers/scsi/qla2xxx/qla_nvme.c: In function 'qla2x00_start_nvme_mq':
include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer
implicitly truncated to unsigned type [-Woverflow]
 #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))

[mkp: fixed typo]

Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_nvme.c