]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Redefine incorrect type in lpfc_create_device_data()
authorJustin Tee <justin.tee@broadcom.com>
Thu, 12 Dec 2024 23:33:00 +0000 (15:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 2 Jan 2025 20:01:21 +0000 (15:01 -0500)
commit1ff0f95ade41d1f56ecad091e35baec6f479241c
tree4b757bc521fc445b484f93b309a71ee11205c45c
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
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>
drivers/scsi/lpfc/lpfc_scsi.c