]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix CONFIG_NUMA=n build
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 May 2018 04:59:56 +0000 (14:59 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 May 2018 04:59:56 +0000 (14:59 +1000)
commita9e4c40d10d09a6302cfe13bff3883cad48a47fa
tree79a87d2820db9b11de5da836d99da57531401cd8
parent1060cf96e7871faa42e3f56b5ab4a94ada40c341
powerpc/pseries: Fix CONFIG_NUMA=n build

The build is failing with CONFIG_NUMA=n and some compiler versions:

  arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `dlpar_online_cpu':
  hotplug-cpu.c:(.text+0x12c): undefined reference to `timed_topology_update'
  arch/powerpc/platforms/pseries/hotplug-cpu.o: In function `dlpar_cpu_remove':
  hotplug-cpu.c:(.text+0x400): undefined reference to `timed_topology_update'

Fix it by moving the empty version of timed_topology_update() into the
existing #ifdef block, which has the right guard of SPLPAR && NUMA.

Fixes: f3c4c80ca577 ("powerpc/hotplug: Improve responsiveness of hotplug change")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/topology.h