diff options
author | 2021-12-02 00:41:50 +1000 | |
---|---|---|
committer | 2021-12-09 22:40:24 +1100 | |
commit | debeda017189e40bff23d1c3d2e4567ca8541aed (patch) | |
tree | f82896f7267656ea2448eb43fbca485a18d2901f /arch/powerpc/include/asm/book3s/64/mmu.h | |
parent | powerpc/64s: Fix radix MMU when MMU_FTR_HPTE_TABLE is clear (diff) | |
download | wireguard-linux-debeda017189e40bff23d1c3d2e4567ca8541aed.tar.xz wireguard-linux-debeda017189e40bff23d1c3d2e4567ca8541aed.zip |
powerpc/64s: Always define arch unmapped area calls
To avoid any functional changes to radix paths when building with hash
MMU support disabled (and CONFIG_PPC_MM_SLICES=n), always define the
arch get_unmapped_area calls on 64s platforms.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211201144153.2456614-16-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/include/asm/book3s/64/mmu.h')
-rw-r--r-- | arch/powerpc/include/asm/book3s/64/mmu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/mmu.h b/arch/powerpc/include/asm/book3s/64/mmu.h index 8c500dd6fee4..a265c5618ce8 100644 --- a/arch/powerpc/include/asm/book3s/64/mmu.h +++ b/arch/powerpc/include/asm/book3s/64/mmu.h @@ -4,6 +4,12 @@ #include <asm/page.h> +#ifdef CONFIG_HUGETLB_PAGE +#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA +#endif +#define HAVE_ARCH_UNMAPPED_AREA +#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN + #ifndef __ASSEMBLY__ /* * Page size definition |