]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix build error when NUMA=n
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Aug 2021 02:30:11 +0000 (12:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Aug 2021 04:11:00 +0000 (14:11 +1000)
commit78b99845f374ed9f79379879db525d7d753384f3
tree350734b6986a3b66ddda1c40afd8857ef3a3569b
parent93249a833b2503dcc9287b70295194b3aac1b9c7
powerpc/pseries: Fix build error when NUMA=n

As reported by lkp, if NUMA=n we see a build error:

   arch/powerpc/platforms/pseries/hotplug-cpu.c: In function 'pseries_cpu_hotplug_init':
   arch/powerpc/platforms/pseries/hotplug-cpu.c:1022:8: error: 'node_to_cpumask_map' undeclared
    1022 |        node_to_cpumask_map[node]);

Use cpumask_of_node() which has an empty stub for NUMA=n, and when
NUMA=y does a lookup from node_to_cpumask_map[].

Fixes: ec95f6616bcc ("powerpc/pseries: Prevent free CPU ids being reused on another node")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210816041032.2839343-1-mpe@ellerman.id.au
arch/powerpc/platforms/pseries/hotplug-cpu.c