mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
powerpc/prom: Fix 32-bit build
Add an IS_ENABLED() check to fix the build error:
arch/powerpc/kernel/prom.o: in function `early_init_dt_scan_cpus':
prom.c:(.init.text+0x2ea): undefined reference to `boot_cpu_node_count'
Fixes: e13d23a404
("powerpc: export the CPU node count")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
98c738c8ce
commit
64fdcbcc06
1 changed files with 2 additions and 1 deletions
|
@ -336,7 +336,8 @@ static int __init early_init_dt_scan_cpus(unsigned long node,
|
||||||
if (type == NULL || strcmp(type, "cpu") != 0)
|
if (type == NULL || strcmp(type, "cpu") != 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
boot_cpu_node_count++;
|
if (IS_ENABLED(CONFIG_PPC64))
|
||||||
|
boot_cpu_node_count++;
|
||||||
|
|
||||||
/* Get physical cpuid */
|
/* Get physical cpuid */
|
||||||
intserv = of_get_flat_dt_prop(node, "ibm,ppc-interrupt-server#s", &len);
|
intserv = of_get_flat_dt_prop(node, "ibm,ppc-interrupt-server#s", &len);
|
||||||
|
|
Loading…
Reference in a new issue