ACPI / hotplug / PCI: Fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 05:34:43 +0000 (13:34 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 20 Jul 2014 21:59:25 +0000 (23:59 +0200)
Fixes the following sparse warning:

drivers/pci/hotplug/acpiphp_glue.c:923:6: warning:
 symbol 'acpiphp_drop_bridge' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpiphp_glue.c

index 24a43d4e993334771e4553af7643ebb055694fcd..70741c8c46a0cae82069ea1eba5ffc8e98a3d834 100644 (file)
@@ -920,7 +920,7 @@ void acpiphp_enumerate_slots(struct pci_bus *bus)
        kfree(bridge);
 }
 
-void acpiphp_drop_bridge(struct acpiphp_bridge *bridge)
+static void acpiphp_drop_bridge(struct acpiphp_bridge *bridge)
 {
        if (pci_is_root_bus(bridge->pci_bus)) {
                struct acpiphp_root_context *root_context;