From: Randy Dunlap Date: Sun, 11 Sep 2022 01:26:16 +0000 (-0700) Subject: ia64: export memory_add_physaddr_to_nid to fix cxl build error X-Git-Tag: v5.15.79~764 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f7892f2428179183b918322c930a87d61976ee3;p=platform%2Fkernel%2Flinux-rpi.git ia64: export memory_add_physaddr_to_nid to fix cxl build error [ Upstream commit 97c318bfbe84efded246e80428054f300042f110 ] cxl_pmem.ko uses memory_add_physaddr_to_nid() but ia64 does not export it, so this causes a build error: ERROR: modpost: "memory_add_physaddr_to_nid" [drivers/cxl/cxl_pmem.ko] undefined! Fix this by exporting that function. Fixes: 8c2676a5870a ("hot-add-mem x86_64: memory_add_physaddr_to_nid node fixup") Reported-by: kernel test robot Signed-off-by: Randy Dunlap Cc: Dan Williams Cc: Ben Widawsky Cc: Jonathan Cameron Cc: linux-ia64@vger.kernel.org Cc: Arnd Bergmann Cc: Keith Mannthey Cc: Andrew Morton Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- diff --git a/arch/ia64/mm/numa.c b/arch/ia64/mm/numa.c index d6579ec..4c7b1f5 100644 --- a/arch/ia64/mm/numa.c +++ b/arch/ia64/mm/numa.c @@ -75,5 +75,6 @@ int memory_add_physaddr_to_nid(u64 addr) return 0; return nid; } +EXPORT_SYMBOL(memory_add_physaddr_to_nid); #endif #endif