Skip to contentSkip to conversation

drivers: pci: Add prototype declarations of function in appropriate header

PATCH In review Rashika Kheria 2 participants 2 messages Dec 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: pci: Add prototype declarations of function in appropriate header

Add prototype declarations of functions arch_msi_mask_irq() and arch_msix_mask_irq() to header file include/linux/msi.h.

This eliminates the following warning in msi.c:
drivers/pci/msi.c:202:12: warning: no previous prototype for ‘arch_msi_mask_irq’ [-Wmissing-prototypes] drivers/pci/msi.c:232:12: warning: no previous prototype for ‘arch_msix_mask_irq’ [-Wmissing-prototypes]

---
 include/linux/msi.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/msi.h +2 -0
index 009b024..63b7d14 100644
@@ -66,6 +66,8 @@ void default_teardown_msi_irqs(struct pci_dev *dev);
 void default_restore_msi_irqs(struct pci_dev *dev, int irq);
 u32 default_msi_mask_irq(struct msi_desc *desc, u32 mask, u32 flag);
 u32 default_msix_mask_irq(struct msi_desc *desc, u32 flag);
+u32 arch_msi_mask_irq(struct msi_desc *desc, u32 mask, u32 flag);
+u32 arch_msix_mask_irq(struct msi_desc *desc, u32 flag);
 
 struct msi_chip {
 	struct module *owner;
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Rashika Kheria

Add prototype declarations of functions arch_msi_mask_irq() and arch_msix_mask_irq() to header file include/linux/msi.h.

This eliminates the following warning in msi.c:
drivers/pci/msi.c:202:12: warning: no previous prototype for ‘arch_msi_mask_irq’ [-Wmissing-prototypes] drivers/pci/msi.c:232:12: warning: no previous prototype for ‘arch_msix_mask_irq’ [-Wmissing-prototypes]

Quoted 19 lines
 include/linux/msi.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/msi.h +2 -0
index 009b024..63b7d14 100644
@@ -66,6 +66,8 @@ void default_teardown_msi_irqs(struct pci_dev *dev);
 void default_restore_msi_irqs(struct pci_dev *dev, int irq);
 u32 default_msi_mask_irq(struct msi_desc *desc, u32 mask, u32 flag);
 u32 default_msix_mask_irq(struct msi_desc *desc, u32 flag);
+u32 arch_msi_mask_irq(struct msi_desc *desc, u32 mask, u32 flag);
+u32 arch_msix_mask_irq(struct msi_desc *desc, u32 flag);
 
 struct msi_chip {
 	struct module *owner;
Signature · 1 line
1.7.9.5