summaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2022-11-16 10:49:30 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-11-23 21:36:46 +0300
commit05e6b4313755742a179cc2315da5dd58df552f7d (patch)
tree019c43ec36da130fd539bd170d3d1df6e93655bd /include/acpi
parent314363737cc92246f8d709292e86e147ab8b3fb0 (diff)
downloadlinux-05e6b4313755742a179cc2315da5dd58df552f7d.tar.xz
ACPI: processor: Silence missing prototype warnings
Silence the following warnings when built with W=1: | CC drivers/acpi/acpi_processor.c | warning: no previous prototype for 'arch_register_cpu' [-Wmissing-prototypes] | int __weak arch_register_cpu(int cpu) | ^ | CC drivers/acpi/acpi_processor.c | warning: no previous prototype for 'arch_unregister_cpu' [-Wmissing-prototypes] | void __weak arch_unregister_cpu(int cpu) {} | ^ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/processor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/acpi/processor.h b/include/acpi/processor.h
index 3f34ebb27525..94181fe9780a 100644
--- a/include/acpi/processor.h
+++ b/include/acpi/processor.h
@@ -465,4 +465,9 @@ extern int acpi_processor_ffh_lpi_probe(unsigned int cpu);
extern int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi);
#endif
+#ifdef CONFIG_ACPI_HOTPLUG_CPU
+extern int arch_register_cpu(int cpu);
+extern void arch_unregister_cpu(int cpu);
+#endif
+
#endif