提交 1129c92f 编写于 作者: L Lv Zheng 提交者: Rafael J. Wysocki

ACPI: Cleanup sparse warning on acpi_os_initialize1()

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: NLv Zheng <lv.zheng@intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 8b5301c5
...@@ -617,7 +617,6 @@ static int __init acpi_bus_init(void) ...@@ -617,7 +617,6 @@ static int __init acpi_bus_init(void)
{ {
int result; int result;
acpi_status status; acpi_status status;
extern acpi_status acpi_os_initialize1(void);
acpi_os_initialize1(); acpi_os_initialize1();
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#define PREFIX "ACPI: " #define PREFIX "ACPI: "
acpi_status acpi_os_initialize1(void);
int init_acpi_device_notify(void); int init_acpi_device_notify(void);
int acpi_scan_init(void); int acpi_scan_init(void);
#ifdef CONFIG_ACPI_PCI_SLOT #ifdef CONFIG_ACPI_PCI_SLOT
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpi_bus.h> #include <acpi/acpi_bus.h>
#include <acpi/processor.h> #include <acpi/processor.h>
#include "internal.h"
#define _COMPONENT ACPI_OS_SERVICES #define _COMPONENT ACPI_OS_SERVICES
ACPI_MODULE_NAME("osl"); ACPI_MODULE_NAME("osl");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册