Commit 452e21cf authored by Michael Ellerman's avatar Michael Ellerman Committed by Dan Williams

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: 04ad63f0 ("cxl/region: Introduce cxl_pmem_region objects")
Reported-by: default avatarSachin Sant <sachinp@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Tested-by: default avatarSachin Sant <sachinp@linux.ibm.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 04ad63f0
...@@ -54,6 +54,7 @@ int memory_add_physaddr_to_nid(u64 start) ...@@ -54,6 +54,7 @@ int memory_add_physaddr_to_nid(u64 start)
{ {
return hot_add_scn_to_nid(start); return hot_add_scn_to_nid(start);
} }
EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
#endif #endif
int __weak create_section_mapping(unsigned long start, unsigned long end, int __weak create_section_mapping(unsigned long start, unsigned long end,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment