Skip to contentSkip to conversation

acpi: add missing prototype for ‘arch_post_acpi_subsys_init’

PATCH Applied Mathieu Malaterre 2 participants 2 messages May 5, 2018 – May 17, 2018 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi: add missing prototype for ‘arch_post_acpi_subsys_init’

In commit e7ff3a47630d ("x86/amd: Check for the C1E bug post ACPI subsystem init") a new function ‘arch_post_acpi_subsys_init’ was introduced. This weak function can potentially be overridden on a per arch basis, introduce the prototype for clarity.

Silence the following gcc warning (W=1):

init/main.c:484:20: warning: no previous prototype for ‘arch_post_acpi_subsys_init’ [-Wmissing-prototypes]

---
 include/linux/acpi.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/acpi.h +1 -0
index 15bfb15c2fa5..cb4d7b6b085c 100644
@@ -578,6 +578,7 @@ int acpi_match_platform_list(const struct acpi_platform_list *plat);
 
 extern void acpi_early_init(void);
 extern void acpi_subsystem_init(void);
+extern void arch_post_acpi_subsys_init(void);
 
 extern int acpi_nvs_register(__u64 start, __u64 size);
 
Signature · 1 line
2.11.0
#1 lore raw
Quoted 20 lines · CEST Mathieu Malaterre

In commit e7ff3a47630d ("x86/amd: Check for the C1E bug post ACPI subsystem init") a new function ‘arch_post_acpi_subsys_init’ was introduced. This weak function can potentially be overridden on a per arch basis, introduce the prototype for clarity.

Silence the following gcc warning (W=1):

init/main.c:484:20: warning: no previous prototype for ‘arch_post_acpi_subsys_init’ [-Wmissing-prototypes]

---
 include/linux/acpi.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/acpi.h +0 -0
index 15bfb15c2fa5..cb4d7b6b085c 100644

include/linux/acpi.h int acpi_match_platform_list(const struct acpi_platform_list *plat); · line 584

Quoted 7 lines
include/linux/acpi.h +1 -0
@@ -578,6 +578,7 @@ int acpi_match_platform_list(const struct acpi_platform_list *plat);
 
 extern void acpi_early_init(void);
 extern void acpi_subsystem_init(void);
+extern void arch_post_acpi_subsys_init(void);
 
 extern int acpi_nvs_register(__u64 start, __u64 size);
 

Applied, thanks!