> From 8ca5b098b6ff1048953be748dbffc987996e2605 Mon Sep 17 00:00:00 2001 > From: Michael Ellerman <mpe@xxxxxxxxxxxxxx> > 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 <sachinp@xxxxxxxxxxxxx> > Signed-off-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx> > --- Thanks Michael. Tested-by: Sachin Sant <sachinp@xxxxxxxxxxxxx> > 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 >