Jason Yan <[email protected]> writes: > These two variables are both defined in init_32.c and init_64.c. Move > them to init-common.c. > > Signed-off-by: Jason Yan <[email protected]> > Cc: Diana Craciun <[email protected]> > Cc: Michael Ellerman <[email protected]> > Cc: Christophe Leroy <[email protected]> > Cc: Benjamin Herrenschmidt <[email protected]> > Cc: Paul Mackerras <[email protected]> > Cc: Nicholas Piggin <[email protected]> > Cc: Kees Cook <[email protected]> > Reviewed-by: Christophe Leroy <[email protected]> > Reviewed-by: Diana Craciun <[email protected]> > Tested-by: Diana Craciun <[email protected]> > --- > arch/powerpc/mm/init-common.c | 5 +++++ > arch/powerpc/mm/init_32.c | 5 ----- > arch/powerpc/mm/init_64.c | 5 ----- > 3 files changed, 5 insertions(+), 10 deletions(-) > > diff --git a/arch/powerpc/mm/init-common.c b/arch/powerpc/mm/init-common.c > index a84da92920f7..152ae0d21435 100644 > --- a/arch/powerpc/mm/init-common.c > +++ b/arch/powerpc/mm/init-common.c > @@ -21,6 +21,11 @@ > #include <asm/pgtable.h> > #include <asm/kup.h> > > +phys_addr_t memstart_addr = (phys_addr_t)~0ull; > +EXPORT_SYMBOL_GPL(memstart_addr); > +phys_addr_t kernstart_addr; > +EXPORT_SYMBOL_GPL(kernstart_addr);
Would be nice if these can be __ro_after_init ? cheers
