summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2013-12-17 14:48:19 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-01-06 00:13:22 +0100
commite22e58a473296f8f4d0ff9ff6743ef05d2c2aaa4 (patch)
tree888a3b0ec6c4df44385ba401230c9cec3b538a06
parent49894d8d5ac19224520f6bec213bbeb120f7eb70 (diff)
downloadlwn-e22e58a473296f8f4d0ff9ff6743ef05d2c2aaa4.tar.gz
lwn-e22e58a473296f8f4d0ff9ff6743ef05d2c2aaa4.zip
ACPI / PCI: Include appropriate header file in pci_slot.c
Includes appropriate header file linux/pci-acpi.h in pci_slot.c because functions acpi_pci_slot_enumerate(), acpi_pci_slot_remove() and acpi_pci_slot_init() have their prototype declaratons in linux/pci-acpi.h. This eliminates the following warnings in pci_slot.c: drivers/acpi/pci_slot.c:162:6: warning: no previous prototype for ‘acpi_pci_slot_enumerate’ [-Wmissing-prototypes] drivers/acpi/pci_slot.c:174:6: warning: no previous prototype for ‘acpi_pci_slot_remove’ [-Wmissing-prototypes] drivers/acpi/pci_slot.c:215:13: warning: no previous prototype for ‘acpi_pci_slot_init’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/pci_slot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/pci_slot.c b/drivers/acpi/pci_slot.c
index d678a180ca2a..139d9e479370 100644
--- a/drivers/acpi/pci_slot.c
+++ b/drivers/acpi/pci_slot.c
@@ -35,6 +35,7 @@
#include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/dmi.h>
+#include <linux/pci-acpi.h>
static bool debug;
static int check_sta_before_sun;