Skip to contentSkip to conversation

vfio/pci: Add missing linux/irq.h include

PATCH In review Thierry Reding 2 participants 2 messages Oct 1, 2014

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

PATCH 1/1 vfio/pci: Add missing linux/irq.h include

From: Thierry Reding <[email protected]>

This code uses the irq_get_msi_desc() function whose prototype is in linux/irq.h. Include this header to fix a build failure.

---
 drivers/vfio/pci/vfio_pci_intrs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/vfio/pci/vfio_pci_intrs.c +1 -0
index a068bb0d69e5..d6f097b0e0e3 100644
@@ -15,6 +15,7 @@
 
 #include <linux/device.h>
 #include <linux/interrupt.h>
+#include <linux/irq.h>
 #include <linux/eventfd.h>
 #include <linux/msi.h>
 #include <linux/pci.h>
Signature · 1 line
2.1.0
#1 lore raw
Quoted 15 lines · Thierry Reding

From: Thierry Reding <[email protected]>

This code uses the irq_get_msi_desc() function whose prototype is in linux/irq.h. Include this header to fix a build failure.

---
 drivers/vfio/pci/vfio_pci_intrs.c | 1 +
 1 file changed, 1 insertion(+)
drivers/vfio/pci/vfio_pci_intrs.c +0 -0
index a068bb0d69e5..d6f097b0e0e3 100644

drivers/vfio/pci/vfio_pci_intrs.c line 21

Quoted 7 lines
drivers/vfio/pci/vfio_pci_intrs.c +1 -0
@@ -15,6 +15,7 @@
 
 #include <linux/device.h>
 #include <linux/interrupt.h>
+#include <linux/irq.h>
 #include <linux/eventfd.h>
 #include <linux/msi.h>
 #include <linux/pci.h>

Hi Thierry, thanks for the patch. The call to irq_get_msi_desc() actually came in as part of a conflict resolution in the next tree. I've requested that the next spin of linux-next include this header if the conflict still exists, but I'm also working to make the conflict go away along with the function call that requires this additional header. Thanks,

Alex