Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: lpfc: Redefine incorrect type in lpfc_create_device_data()

Fix smatch warning by redefining local variable memory_flags from int to
gfp_t.

lpfc_scsi.c: warning: incorrect type in argument 2 (different base types)
lpfc_scsi.c: expected restricted gfp_t [usertype] gfp_mask
lpfc_scsi.c: got int memory_flags

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20241212233309.71356-2-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Justin Tee and committed by
Martin K. Petersen
1ff0f95a 40384c84

+1 -1
+1 -1
drivers/scsi/lpfc/lpfc_scsi.c
··· 6422 6422 { 6423 6423 6424 6424 struct lpfc_device_data *lun_info; 6425 - int memory_flags; 6425 + gfp_t memory_flags; 6426 6426 6427 6427 if (unlikely(!phba) || !vport_wwpn || !target_wwpn || 6428 6428 !(phba->cfg_fof))