Skip to content

Commit 05e6b43

Browse files
sudeep-hollarafaeljw
authored andcommitted
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>
1 parent 3143637 commit 05e6b43

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/acpi/processor.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,4 +465,9 @@ extern int acpi_processor_ffh_lpi_probe(unsigned int cpu);
465465
extern int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi);
466466
#endif
467467

468+
#ifdef CONFIG_ACPI_HOTPLUG_CPU
469+
extern int arch_register_cpu(int cpu);
470+
extern void arch_unregister_cpu(int cpu);
471+
#endif
472+
468473
#endif

0 commit comments

Comments
 (0)