cpu-hotplug: Provide prototypes for arch CPU registration
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 25 Sep 2023 16:28:39 +0000 (17:28 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 11 Oct 2023 12:27:37 +0000 (14:27 +0200)
commitc4dd854f740c21ae8dd9903fc67969c5497cb14b
treef2aac9f62d503cf284d5c22ba931880ac603f684
parent94f6f0550c625fab1f373bb86a6669b45e9748b3
cpu-hotplug: Provide prototypes for arch CPU registration

Provide common prototypes for arch_register_cpu() and
arch_unregister_cpu(). These are called by acpi_processor.c, with weak
versions, so the prototype for this is already set. It is generally not
necessary for function prototypes to be conditional on preprocessor macros.

Some architectures (e.g. Loongarch) are missing the prototype for this, and
rather than add it to Loongarch's asm/cpu.h, do the job once for everyone.

Since this covers everyone, remove the now unnecessary prototypes in
asm/cpu.h, and therefore remove the 'static' from one of ia64's
arch_register_cpu() definitions.

[ tglx: Bring back the ia64 part and remove the ACPI prototypes ]

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/E1qkoRr-0088Q8-Da@rmk-PC.armlinux.org.uk
arch/ia64/include/asm/cpu.h
arch/ia64/kernel/topology.c
arch/x86/include/asm/cpu.h
arch/x86/kernel/topology.c
drivers/acpi/acpi_processor.c
include/acpi/processor.h
include/linux/cpu.h