OSDN Git Service

powerpc/prom: Fix 32-bit build
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 7 Dec 2022 22:43:15 +0000 (09:43 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 7 Dec 2022 22:43:15 +0000 (09:43 +1100)
commit64fdcbcc064966bbf261bb455876dffa58858d32
treec04f8669260656429414fa1a4259812eef37a18c
parent98c738c8cee6e5a58d4060862e2f8cf3cdc8a328
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: e13d23a404f2 ("powerpc: export the CPU node count")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom.c