diff options
author | Lv Zheng <lv.zheng@intel.com> | 2013-07-23 04:11:55 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-25 18:36:00 -0400 |
commit | 1129c92faa069581bf3acf34cae92477bd6161d8 (patch) | |
tree | f710e415c152682641c80fab68a802f19f531a4b | |
parent | 8b5301c5ff2568236c6e3b3d0c93a3e4194ec3f5 (diff) |
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: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/bus.c | 1 | ||||
-rw-r--r-- | drivers/acpi/internal.h | 1 | ||||
-rw-r--r-- | drivers/acpi/osl.c | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index b6e9a3786e2d..25b289ff4290 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -617,7 +617,6 @@ static int __init acpi_bus_init(void) | |||
617 | { | 617 | { |
618 | int result; | 618 | int result; |
619 | acpi_status status; | 619 | acpi_status status; |
620 | extern acpi_status acpi_os_initialize1(void); | ||
621 | 620 | ||
622 | acpi_os_initialize1(); | 621 | acpi_os_initialize1(); |
623 | 622 | ||
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index 3a50a34fe176..b636b7481f31 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #define PREFIX "ACPI: " | 24 | #define PREFIX "ACPI: " |
25 | 25 | ||
26 | acpi_status acpi_os_initialize1(void); | ||
26 | int init_acpi_device_notify(void); | 27 | int init_acpi_device_notify(void); |
27 | int acpi_scan_init(void); | 28 | int acpi_scan_init(void); |
28 | #ifdef CONFIG_ACPI_PCI_SLOT | 29 | #ifdef CONFIG_ACPI_PCI_SLOT |
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 6ab2c3505520..605718f66642 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -52,6 +52,7 @@ | |||
52 | #include <acpi/acpi.h> | 52 | #include <acpi/acpi.h> |
53 | #include <acpi/acpi_bus.h> | 53 | #include <acpi/acpi_bus.h> |
54 | #include <acpi/processor.h> | 54 | #include <acpi/processor.h> |
55 | #include "internal.h" | ||
55 | 56 | ||
56 | #define _COMPONENT ACPI_OS_SERVICES | 57 | #define _COMPONENT ACPI_OS_SERVICES |
57 | ACPI_MODULE_NAME("osl"); | 58 | ACPI_MODULE_NAME("osl"); |