[PATCH 02/16] powerpc/book3s64/mm: mmu_vmemmap_psize is used by radix
Michael Ellerman
mpe at ellerman.id.au
Wed Jun 21 14:08:25 AEST 2023
"Aneesh Kumar K.V" <aneesh.kumar at linux.ibm.com> writes:
> This should not be within CONFIG_PPC_64S_HASHS_MMU. We use mmu_vmemmap_psize
> on radix while mapping the vmemmap area.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at linux.ibm.com>
> ---
> arch/powerpc/mm/book3s64/radix_pgtable.c | 2 --
> 1 file changed, 2 deletions(-)
This breaks microwatt_defconfig, which does not enable CONFIG_PPC_64S_HASH_MMU:
../arch/powerpc/mm/book3s64/radix_pgtable.c: In function ‘radix__early_init_mmu’:
../arch/powerpc/mm/book3s64/radix_pgtable.c:601:27: error: lvalue required as left operand of assignment
601 | mmu_virtual_psize = MMU_PAGE_4K;
| ^
make[5]: *** [../scripts/Makefile.build:252: arch/powerpc/mm/book3s64/radix_pgtable.o] Error 1
make[4]: *** [../scripts/Makefile.build:494: arch/powerpc/mm/book3s64] Error 2
make[3]: *** [../scripts/Makefile.build:494: arch/powerpc/mm] Error 2
make[2]: *** [../scripts/Makefile.build:494: arch/powerpc] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/home/michael/linux/Makefile:2026: .] Error 2
make: *** [Makefile:226: __sub-make] Error 2
Because mmu_virtual_psize is defined in hash_utils.c, which isn't built.
cheers
More information about the Linuxppc-dev
mailing list