ACPI: Cleanup sparse warning on acpi_os_initialize1()
authorLv Zheng <lv.zheng@intel.com>
Tue, 23 Jul 2013 08:11:55 +0000 (16:11 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Jul 2013 22:36:00 +0000 (00:36 +0200)
This patch cleans up the following sparse warning:

# make C=2 drivers/acpi/osl.o
...
drivers/acpi/osl.c:1775:20: warning: symbol 'acpi_os_initialize1' was not declared. Should it be static?
...
  CC      drivers/acpi/osl.o

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c
drivers/acpi/internal.h
drivers/acpi/osl.c

index b6e9a3786e2dcf54f7484f36dcdd93f8e0ed589a..25b289ff42902ba611768f0ba0e3b55bdfd1b151 100644 (file)
@@ -617,7 +617,6 @@ static int __init acpi_bus_init(void)
 {
        int result;
        acpi_status status;
-       extern acpi_status acpi_os_initialize1(void);
 
        acpi_os_initialize1();
 
index 3a50a34fe176b34bb77a3ff8cfff9588fe523da8..b636b7481f31bda7e86801bf0f8bb20bd1e177e2 100644 (file)
@@ -23,6 +23,7 @@
 
 #define PREFIX "ACPI: "
 
+acpi_status acpi_os_initialize1(void);
 int init_acpi_device_notify(void);
 int acpi_scan_init(void);
 #ifdef CONFIG_ACPI_PCI_SLOT
index 6ab2c350552061893ded7355d376406de5d98ed8..605718f6664226ad3cb716db55f60ec1f4468b7d 100644 (file)
@@ -52,6 +52,7 @@
 #include <acpi/acpi.h>
 #include <acpi/acpi_bus.h>
 #include <acpi/processor.h>
+#include "internal.h"
 
 #define _COMPONENT             ACPI_OS_SERVICES
 ACPI_MODULE_NAME("osl");