]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
PCIe: fix 'symbol not declared' sparse warnings
authorAlex Chiang <achiang@hp.com>
Wed, 4 Jun 2008 17:39:07 +0000 (11:39 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 Jun 2008 17:59:55 +0000 (10:59 -0700)
While refreshing my physical PCI slot series against upstream, I
noticed a few simple sparse/compile warnings that were easy to
fix.

Fix the following sparse warnings in PCIe:

drivers/pci/pcie/aer/aerdrv.c:86:6: warning: symbol 'pci_no_aer'
was not declared. Should it be static?
drivers/pci/pcie/portdrv_bus.c:21:17: warning: symbol
'pcie_port_bus_type' was not declared. Should it be static?

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aer/aerdrv.c
drivers/pci/pcie/portdrv_bus.c

index 07c3bdb6edc2ad5b261f3877eed725466f4d895a..b7a3aa602d40260f4c0ce23d960104234ee794c6 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/pcieport_if.h>
 
 #include "aerdrv.h"
+#include "../../pci.h"
 
 /*
  * Version Information
index 3f0976868eda656c9a2441caae804c96f9cc3fac..359fe5568df10263cd9c0620c42e7f9c8ffef1bd 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/pm.h>
 
 #include <linux/pcieport_if.h>
+#include "portdrv.h"
 
 static int pcie_port_bus_match(struct device *dev, struct device_driver *drv);
 static int pcie_port_bus_suspend(struct device *dev, pm_message_t state);