Skip to content

Commit c85ab4f

Browse files
chleroympe
authored andcommitted
powerpc/64s: Only set HAVE_ARCH_UNMAPPED_AREA when CONFIG_PPC_64S_HASH_MMU is set
When CONFIG_PPC_64S_HASH_MMU is not set, slice.c is not built and arch_get_unmapped_area() and arch_get_unmapped_area_topdown() are not provided because RADIX uses the generic ones. Therefore, neither set HAVE_ARCH_UNMAPPED_AREA nor HAVE_ARCH_UNMAPPED_AREA_TOPDOWN. Fixes: ab57bd7 ("powerpc/mm: Move get_unmapped_area functions to slice.c") Reported-by: Laurent Dufour <ldufour@linux.ibm.com> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Tested-by: Laurent Dufour <ldufour@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/e438c6cc09f94085e56733ed2d6e84333c35292a.1653370913.git.christophe.leroy@csgroup.eu
1 parent 14554d9 commit c85ab4f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • arch/powerpc/include/asm/book3s/64

arch/powerpc/include/asm/book3s/64/slice.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
#ifndef __ASSEMBLY__
66

7+
#ifdef CONFIG_PPC_64S_HASH_MMU
78
#ifdef CONFIG_HUGETLB_PAGE
89
#define HAVE_ARCH_HUGETLB_UNMAPPED_AREA
910
#endif
1011
#define HAVE_ARCH_UNMAPPED_AREA
1112
#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
13+
#endif
1214

1315
#define SLICE_LOW_SHIFT 28
1416
#define SLICE_LOW_TOP (0x100000000ul)

0 commit comments

Comments
 (0)