Skip to content

Commit 1ff0f95

Browse files
Justin Teemartinkpetersen
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 40384c8 commit 1ff0f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_scsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6422,7 +6422,7 @@ lpfc_create_device_data(struct lpfc_hba *phba, struct lpfc_name *vport_wwpn,
64226422
{
64236423

64246424
struct lpfc_device_data *lun_info;
6425-
int memory_flags;
6425+
gfp_t memory_flags;
64266426

64276427
if (unlikely(!phba) || !vport_wwpn || !target_wwpn ||
64286428
!(phba->cfg_fof))

0 commit comments

Comments
 (0)