Skip to contentSkip to conversation

ACPI: include missed header into acpi_platform.c

PATCH Applied Andy Shevchenko 3 participants 3 messages Nov 26, 2012 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: include missed header into acpi_platform.c

The internal.h declares the acpi_create_platform_device(). Without that include
we get a following warning:
drivers/acpi/acpi_platform.c:133:24: warning: symbol 'acpi_create_platform_device' was not declared. Should it be static?

---
 drivers/acpi/acpi_platform.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/acpi/acpi_platform.c +2 -0
index dbb31d6..2eee101 100644
@@ -17,6 +17,8 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 
+#include "internal.h"
+
 ACPI_MODULE_NAME("platform");
 
 struct resource_info {
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Andy Shevchenko

The internal.h declares the acpi_create_platform_device(). Without that include
we get a following warning:
drivers/acpi/acpi_platform.c:133:24: warning: symbol 'acpi_create_platform_device' was not declared. Should it be static?

Quoted 19 lines
---
 drivers/acpi/acpi_platform.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/acpi/acpi_platform.c +2 -0
index dbb31d6..2eee101 100644
@@ -17,6 +17,8 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 
+#include "internal.h"
+
 ACPI_MODULE_NAME("platform");
 
 struct resource_info {
Signature · 1 line
1.7.10.4
#2 lore raw
Quoted 8 lines · Mika Westerberg
Quoted 5 lines · Andy Shevchenko

The internal.h declares the acpi_create_platform_device(). Without that include
we get a following warning:
drivers/acpi/acpi_platform.c:133:24: warning: symbol 'acpi_create_platform_device' was not declared. Should it be static?

Applied.

Thanks,
Rafael

Quoted 21 lines
Quoted 9 lines
---
 drivers/acpi/acpi_platform.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/acpi/acpi_platform.c +0 -0
index dbb31d6..2eee101 100644

drivers/acpi/acpi_platform.c line 24

Quoted 8 lines
drivers/acpi/acpi_platform.c +2 -0
@@ -17,6 +17,8 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 
+#include "internal.h"
+
 ACPI_MODULE_NAME("platform");
 
 struct resource_info {

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.