[PATCH] fix 2 warning of MIPS PCI codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 */



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux