diff mbox series

scsi: bfa: Use the proper data type for BLIST flags

Message ID 20231115193338.2261972-1-bvanassche@acm.org (mailing list archive)
State Accepted
Headers show
Series scsi: bfa: Use the proper data type for BLIST flags | expand

Commit Message

Bart Van Assche Nov. 15, 2023, 7:33 p.m. UTC
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311031255.lmSPisIk-lkp@intel.com/
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 drivers/scsi/bfa/bfad_bsg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen Nov. 25, 2023, 12:14 a.m. UTC | #1
Bart,

> 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!
Martin K. Petersen Dec. 6, 2023, 3:15 a.m. UTC | #2
On Wed, 15 Nov 2023 11:33:38 -0800, Bart Van Assche wrote:

> 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
diff mbox series

Patch

diff --git a/drivers/scsi/bfa/bfad_bsg.c b/drivers/scsi/bfa/bfad_bsg.c
index 520f9152f3bf..d4ceca2d435e 100644
--- a/drivers/scsi/bfa/bfad_bsg.c
+++ b/drivers/scsi/bfa/bfad_bsg.c
@@ -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;