powerpc/mm: Export memory_add_physaddr_to_nid() for modules
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 29 Jul 2022 06:13:55 +0000 (16:13 +1000)
committerDan Williams <dan.j.williams@intel.com>
Fri, 29 Jul 2022 14:37:49 +0000 (07:37 -0700)
commit452e21cf3438aca19b678d1f182d7d6525648956
treed7bca34e6e0c3c614852f2ea3e8103fda84c7826
parent04ad63f086d1a9649b8b082748cbc7a570ade461
powerpc/mm: Export memory_add_physaddr_to_nid() for modules

The cxl_pmem module wants to call memory_add_physaddr_to_nid(), so
export the symbol.

Link: http://lore.kernel.org/r/87sfmkbfyg.fsf@mpe.ellerman.id.au
Fixes: 04ad63f086d1 ("cxl/region: Introduce cxl_pmem_region objects")
Reported-by: Sachin Sant <sachinp@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Sachin Sant <sachinp@linux.ibm.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/powerpc/mm/mem.c