smp: Avoid 'setup_max_cpus' namespace collision/shadowing
authorIngo Molnar <mingo@kernel.org>
Tue, 27 Feb 2024 08:58:15 +0000 (09:58 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 27 Feb 2024 09:05:32 +0000 (10:05 +0100)
commit4c8a49854130da0117a0fdb858551824919a2389
tree8dc7039b25b2c6c19db9136c1e221b0a9f1e308d
parent89b0f15f408f7c4ee98c1ec4c3224852fcbc3274
smp: Avoid 'setup_max_cpus' namespace collision/shadowing

bringup_nonboot_cpus() gets passed the 'setup_max_cpus'
variable in init/main.c - which is also the name of the parameter,
shadowing the name.

To reduce confusion and to allow the 'setup_max_cpus' value
to be #defined in the <linux/smp.h> header, use the 'max_cpus'
name for the function parameter name.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
include/linux/cpu.h
kernel/cpu.c