From: Michael Ellerman Date: Fri, 29 Jul 2022 06:13:55 +0000 (+1000) Subject: powerpc/mm: Export memory_add_physaddr_to_nid() for modules X-Git-Tag: v6.6.17~6817^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=452e21cf3438aca19b678d1f182d7d6525648956;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Michael Ellerman Tested-by: Sachin Sant Signed-off-by: Dan Williams --- diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 52b7768..0335b72 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -54,6 +54,7 @@ int memory_add_physaddr_to_nid(u64 start) { return hot_add_scn_to_nid(start); } +EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); #endif int __weak create_section_mapping(unsigned long start, unsigned long end,