scsi: bfa: Use the proper data type for BLIST flags
Subsystems (2)
PATCH 1/1 scsi: bfa: Use the proper data type for BLIST flags
Fix the following sparse warning:
drivers/scsi/bfa/bfad_bsg.c:2553:50: sparse: sparse: incorrect type in initializer (different base types)
Fixes 2e5a6c3baccd ("scsi: bfa: Convert bfad_reset_sdev_bflags() from a macro into a function")
Reported-by kernel test robot <[email protected]>
Signed-off-by Bart Van Assche <[email protected]>
--- drivers/scsi/bfa/bfad_bsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/bfa/bfad_bsg.c +1 -1
@@ -2550,7 +2550,7 @@ bfad_iocmd_vf_clr_stats(struct bfad_s *bfad, void *cmd)static void bfad_reset_sdev_bflags (struct bfad_im_port_s *im_port,int lunmask_cfg) { -const u32 scan_flags =BLIST_NOREPORTLUN |BLIST_SPARSELUN ; +const blist_flags_t scan_flags =BLIST_NOREPORTLUN |BLIST_SPARSELUN ;struct bfad_itnim_s *itnim;struct scsi_device *sdev;unsigned long flags;
Martin K. Petersen
AppliedBart,
Quoted 3 lines
Fix the following sparse warning:
drivers/scsi/bfa/bfad_bsg.c:2553:50: sparse: sparse: incorrect type in initializer (different base types)
Applied to 6.8/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 5 lines · Bart Van Assche
Fix the following sparse warning:
drivers/scsi/bfa/bfad_bsg.c:2553:50: sparse: sparse: incorrect type in initializer (different base types)
Applied to 6.8/scsi-queue, thanks!
[1/1] scsi: bfa: Use the proper data type for BLIST flags
https://git.kernel.org/mkp/scsi/c/0349be31e4ff
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering