Skip to contentSkip to conversation

lpfc: fix build error of lpfc_debugfs.c for vfree/vmalloc

PATCH Applied James Smart 3 participants 3 messages Oct 25, 2019 – Oct 29, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lpfc: fix build error of lpfc_debugfs.c for vfree/vmalloc

lpfc_debufs.c was missing include of vmalloc.h when compiled on PPC.

Add missing header.

---
 drivers/scsi/lpfc/lpfc_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/lpfc/lpfc_debugfs.c +1 -0
index ab124f7d50d6..6c8effcfc8ae 100644
@@ -31,6 +31,7 @@
 #include <linux/pci.h>
 #include <linux/spinlock.h>
 #include <linux/ctype.h>
+#include <linux/vmalloc.h>
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_device.h>
Signature · 1 line
2.13.7
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · James Smart

lpfc_debufs.c was missing include of vmalloc.h when compiled on PPC.

Add missing header.

---
 drivers/scsi/lpfc/lpfc_debugfs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/lpfc/lpfc_debugfs.c +0 -0
index ab124f7d50d6..6c8effcfc8ae 100644

drivers/scsi/lpfc/lpfc_debugfs.c line 37

Quoted 7 lines
drivers/scsi/lpfc/lpfc_debugfs.c +1 -0
@@ -31,6 +31,7 @@
 #include <linux/pci.h>
 #include <linux/spinlock.h>
 #include <linux/ctype.h>
+#include <linux/vmalloc.h>
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_device.h>
#2 lore raw
In reply to James Smart

James,

Quoted 3 lines

lpfc_debufs.c was missing include of vmalloc.h when compiled on PPC.

Add missing header.

Applied to 5.5/scsi-queue, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering