[Top] [All Lists]

[PATCH] rbtx4938: fix some warnings

Subject: [PATCH] rbtx4938: fix some warnings
From: Atsushi Nemoto <>
Date: Sat, 28 Jul 2007 01:03:41 +0900 (JST)
Original-recipient: rfc822;
This patch fixes:

linux/arch/mips/pci/fixup-tx4938.c:21:5: warning: symbol 'pci_get_irq' was not 
declared. Should it be static?
linux/arch/mips/pci/fixup-tx4938.c:76: warning: passing argument 1 of 
'pci_get_irq' discards qualifiers from pointer target type

Signed-off-by: Atsushi Nemoto <>
diff --git a/arch/mips/pci/fixup-tx4938.c b/arch/mips/pci/fixup-tx4938.c
index 2485f47..f2ba06e 100644
--- a/arch/mips/pci/fixup-tx4938.c
+++ b/arch/mips/pci/fixup-tx4938.c
@@ -18,7 +18,7 @@
 extern struct pci_controller tx4938_pci_controller[];
-int pci_get_irq(struct pci_dev *dev, int pin)
+static int pci_get_irq(const struct pci_dev *dev, int pin)
        int irq = pin;
        u8 slot = PCI_SLOT(dev->devfn);

<Prev in Thread] Current Thread [Next in Thread>