Skip to contentSkip to conversation

powerpc: Fix build error with 64K pages and !hugetlbfs

PATCH New Benjamin Herrenschmidt 1 participant 1 message Sep 3, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Fix build error with 64K pages and !hugetlbfs

HAVE_ARCH_UNMAPPED_AREA and HAVE_ARCH_UNMAPPED_AREA_TOPDOWN must be defined whenever CONFIG_PPC_MM_SLICES is enabled, not only when CONFIG_HUGETLB_PAGE is. They used to be always defined together but this is no longer the case.

---

 arch/powerpc/include/asm/pgtable-ppc64.h |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/powerpc/include/asm/pgtable-ppc64.h +2 -4
@@ -153,12 +153,10 @@
 #define __S110	PAGE_SHARED_X
 #define __S111	PAGE_SHARED_X
 
-#ifdef CONFIG_HUGETLB_PAGE
-
+#ifdef CONFIG_PPC_MM_SLICES
 #define HAVE_ARCH_UNMAPPED_AREA
 #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
-
-#endif
+#endif /* CONFIG_PPC_MM_SLICES */
 
 #ifndef __ASSEMBLY__