]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Fixup pte_mkhuge() build failure.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 6 Dec 2006 02:20:53 +0000 (11:20 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 6 Dec 2006 02:20:53 +0000 (11:20 +0900)
When hugetlbpage support isn't enabled, this can be bogus.
Wrap it back in _PAGE_FLAGS_HARD to avoid changes to the
base PTE when not aiming for larger sizes.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/pgtable.h

index f87504abb43f44e77a69c674718a6fbbfbcbd778..c84901dbd8e51cf2097e591c6c439c232443d611 100644 (file)
@@ -197,6 +197,14 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
 # endif
 #endif
 
+/*
+ * Stub out _PAGE_SZHUGE if we don't have a good definition for it,
+ * to make pte_mkhuge() happy.
+ */
+#ifndef _PAGE_SZHUGE
+# define _PAGE_SZHUGE  (_PAGE_FLAGS_HARD)
+#endif
+
 #define _PAGE_CHG_MASK \
        (PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | _PAGE_DIRTY)