]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/numa: Fix build when CONFIG_NUMA=n
authorScott Cheloha <cheloha@linux.ibm.com>
Thu, 5 Nov 2020 22:30:40 +0000 (16:30 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 6 Nov 2020 03:16:19 +0000 (14:16 +1100)
commit580547dd83fdacc4b6a087768c2048d17a541bc1
treea4b8a151e19c7cea133f9fbc6dc2eba3acb2505b
parente4cf4d5a1c39f8716fdea99ab55de6e58d61b18a
powerpc/numa: Fix build when CONFIG_NUMA=n

Add a non-NUMA definition for of_drconf_to_nid_single() to topology.h
so we have one even if powerpc/mm/numa.c is not compiled. On a
non-NUMA kernel the appropriate node id is always first_online_node.

Fixes: 17f00fb8e01d ("pseries/hotplug-memory: hot-add: skip redundant LMB lookup")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Scott Cheloha <cheloha@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201105223040.3612663-1-cheloha@linux.ibm.com
arch/powerpc/include/asm/topology.h