scsi: qla2xxx: make 1 bit bit-fields unsigned int
Subsystems (3)
PATCH 1/1 scsi: qla2xxx: make 1 bit bit-fields unsigned int
From: Colin Ian King <[email protected]>
The bitfields mpi_fw_dump_reading and mpi_fw_dumped are currently signed which is not recommended as the representation is an implementation defined behaviour. Fix this by making the bit-fields unsigned ints.
--- drivers/scsi/qla2xxx/qla_def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_def.h +2 -2
@@ -4248,8 +4248,8 @@ struct qla_hw_data {int fw_dump_reading;void *mpi_fw_dump;u32 mpi_fw_dump_len; - int mpi_fw_dump_reading:1; - int mpi_fw_dumped:1; + unsigned int mpi_fw_dump_reading:1; + unsigned int mpi_fw_dumped:1;int prev_minidump_failed;dma_addr_t eft_dma;void *eft;
Signature · 1 line
2.25.1
Quoted 17 lines · Colin King
From: Colin Ian King <[email protected]>
The bitfields
mpi_fw_dump_readingandmpi_fw_dumpedare currently signed which is not recommended as the representation is an implementation defined behaviour. Fix this by making the bit-fields unsigned ints.Fixes cbb01c2f2f63 ("scsi: qla2xxx: Fix MPI failure AEN (8200) handling")Signed-off-by Colin Ian King <[email protected]>--- drivers/scsi/qla2xxx/qla_def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/scsi/qla2xxx/qla_def.h +0
-0
drivers/scsi/qla2xxx/qla_def.h struct qla_hw_data { · line 4255
Quoted 10 lines
drivers/scsi/qla2xxx/qla_def.h +2
-2@@ -4248,8 +4248,8 @@ struct qla_hw_data {int fw_dump_reading;void *mpi_fw_dump;u32 mpi_fw_dump_len; - int mpi_fw_dump_reading:1; - int mpi_fw_dumped:1; + unsigned int mpi_fw_dump_reading:1; + unsigned int mpi_fw_dumped:1;int prev_minidump_failed;dma_addr_t eft_dma;void *eft;
Quoted 18 lines · Colin King
From: Colin Ian King <[email protected]>
The bitfields
mpi_fw_dump_readingandmpi_fw_dumpedare currently signed which is not recommended as the representation is an implementation defined behaviour. Fix this by making the bit-fields unsigned ints.Fixes cbb01c2f2f63 ("scsi: qla2xxx: Fix MPI failure AEN (8200) handling")Signed-off-by Colin Ian King <[email protected]>--- drivers/scsi/qla2xxx/qla_def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/scsi/qla2xxx/qla_def.h +0
-0
drivers/scsi/qla2xxx/qla_def.h struct qla_hw_data { · line 4255
Quoted 10 lines
drivers/scsi/qla2xxx/qla_def.h +2
-2@@ -4248,8 +4248,8 @@ struct qla_hw_data {int fw_dump_reading;void *mpi_fw_dump;u32 mpi_fw_dump_len; - int mpi_fw_dump_reading:1; - int mpi_fw_dumped:1; + unsigned int mpi_fw_dump_reading:1; + unsigned int mpi_fw_dumped:1;int prev_minidump_failed;dma_addr_t eft_dma;void *eft;
Signature · 2 lines
Himanshu Madhani Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 3 lines · Colin King
The bitfields
mpi_fw_dump_readingandmpi_fw_dumpedare currently signed which is not recommended as the representation is an implementation defined behaviour. Fix this by making the bit-fields unsigned ints.
Applied to 5.8/scsi-queue, thanks!
[1/1] scsi: qla2xxx: make 1-bit bit-fields unsigned int
https://git.kernel.org/mkp/scsi/c/78b874b7cbf0
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering