powerpc: move memstart_addr and kernstart_addr to init-common.c
authorJason Yan <yanaijie@huawei.com>
Fri, 20 Sep 2019 09:45:36 +0000 (17:45 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 08:27:28 +0000 (19:27 +1100)
commit4ed47dbefa299d7b36944f6d4001ee83612dd680
treef132954cac4eef841702d6aab80413d9002cc455
parent8054df0570588e22007a8be6fa7615462389f27f
powerpc: move memstart_addr and kernstart_addr to init-common.c

These two variables are both defined in init_32.c and init_64.c. Move
them to init-common.c and make them __ro_after_init.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Diana Craciun <diana.craciun@nxp.com>
Tested-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Scott Wood <oss@buserror.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/init-common.c
arch/powerpc/mm/init_32.c
arch/powerpc/mm/init_64.c