Thread (4 messages) 4 messages, 3 authors, 2022-07-29

Re: [linux-next] Build failure drivers/cxl/cxl_pmem (powerpc)

From: Sachin Sant <hidden>
Date: 2022-07-29 07:18:40
Also in: linux-cxl, linux-next

From 8ca5b098b6ff1048953be748dbffc987996e2605 Mon Sep 17 00:00:00 2001
From: Michael Ellerman <mpe@ellerman.id.au>
Date: Fri, 29 Jul 2022 16:13:55 +1000
Subject: [PATCH] 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.

Fixes: 04ad63f086d1 ("cxl/region: Introduce cxl_pmem_region objects")
Reported-by: Sachin Sant <redacted>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
Thanks Michael.

Tested-by: Sachin Sant <redacted>
quoted hunk ↗ jump to hunk
arch/powerpc/mm/mem.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 7b0d286bf9ba..01772e79fd93 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -55,6 +55,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,
-- 
2.35.3
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help