linux-mips
[Top] [All Lists]

[PATCH] fix 2 warning of MIPS PCI codes

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] fix 2 warning of MIPS PCI codes
From: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Date: Mon, 31 May 2004 02:05:51 +0900
Cc: yuasa@hh.iij4u.or.jp, linux-mips <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi Ralf,

The 2 warning of PCI was fixed by this patch.

drivers/pci/setup-res.c: In function `pci_update_resource':
drivers/pci/setup-res.c:43: warning: implicit declaration of function 
`pcibios_resource_to_bus'

arch/mips/pci/pci.c: In function `pcibios_fixup_device_resources':
arch/mips/pci/pci.c:234: warning: `offset' might be used uninitialized in this 
function

Please apply to v2.6 CVS tree.

Yoichi

diff -urN -X dontdiff linux-orig/arch/mips/pci/pci.c linux/arch/mips/pci/pci.c
--- linux-orig/arch/mips/pci/pci.c      Tue Jan 20 02:48:06 2004
+++ linux/arch/mips/pci/pci.c   Sun May 30 07:03:03 2004
@@ -231,7 +231,7 @@
 {
        /* Update device resources.  */
        struct pci_controller *hose = (struct pci_controller *)bus->sysdata;
-       unsigned long offset;
+       unsigned long offset = 0;
        int i;
 
        for (i = 0; i < PCI_NUM_RESOURCES; i++) {
diff -urN -X dontdiff linux-orig/include/asm-mips/pci.h 
linux/include/asm-mips/pci.h
--- linux-orig/include/asm-mips/pci.h   Tue Apr 13 08:19:05 2004
+++ linux/include/asm-mips/pci.h        Sun May 30 11:56:01 2004
@@ -87,6 +87,9 @@
 extern void pci_dac_dma_sync_single_for_device(struct pci_dev *pdev,
        dma64_addr_t dma_addr, size_t len, int direction);
 
+extern void pcibios_resource_to_bus(struct pci_dev *dev,
+       struct pci_bus_region *region, struct resource *res);
+
 #endif /* __KERNEL__ */
 
 /* implement the pci_ DMA API in terms of the generic device dma_ one */


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] fix 2 warning of MIPS PCI codes, Yoichi Yuasa <=