diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2020-09-17 10:06:43 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-18 19:59:43 +1000 |
commit | bda7673d64b6c2e92423363a756caa657464e096 (patch) | |
tree | fd487bc3c7a9630e30c7253da75680d04826984a /arch/powerpc/platforms/pseries/lpar.c | |
parent | 0b30191b277a13f75700b495dcd75a661b4f70a6 (diff) | |
download | linux-stable-bda7673d64b6c2e92423363a756caa657464e096.tar.gz linux-stable-bda7673d64b6c2e92423363a756caa657464e096.tar.bz2 linux-stable-bda7673d64b6c2e92423363a756caa657464e096.zip |
powerpc/book3s64: fix link error with CONFIG_PPC_RADIX_MMU=n
Fix link error when CONFIG_PPC_RADIX_MMU is disabled:
powerpc64-linux-gnu-ld: arch/powerpc/platforms/pseries/lpar.o:(.toc+0x0): undefined reference to `mmu_pid_bits'
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200917020643.90375-1-yangyingliang@huawei.com
Diffstat (limited to 'arch/powerpc/platforms/pseries/lpar.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/lpar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index baf24eacd268..764170fdb0f7 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c @@ -1724,6 +1724,7 @@ void __init hpte_init_pseries(void) pseries_lpar_register_process_table(0, 0, 0); } +#ifdef CONFIG_PPC_RADIX_MMU void radix_init_pseries(void) { pr_info("Using radix MMU under hypervisor\n"); @@ -1731,6 +1732,7 @@ void radix_init_pseries(void) pseries_lpar_register_process_table(__pa(process_tb), 0, PRTB_SIZE_SHIFT - 12); } +#endif #ifdef CONFIG_PPC_SMLPAR #define CMO_FREE_HINT_DEFAULT 1 |