summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/pgtable.h
diff options
context:
space:
mode:
authorPaul Mundt2006-12-06 03:20:53 +0100
committerPaul Mundt2006-12-06 03:20:53 +0100
commit5b67954e804465a4658dd4da8d52b87a8d1ea00c (patch)
treeecaf439834f2e6453c090700f051cd7952a6043a /include/asm-sh/pgtable.h
parentsh: set KBUILD_IMAGE to something sensible. (diff)
downloadkernel-qcow2-linux-5b67954e804465a4658dd4da8d52b87a8d1ea00c.tar.gz
kernel-qcow2-linux-5b67954e804465a4658dd4da8d52b87a8d1ea00c.tar.xz
kernel-qcow2-linux-5b67954e804465a4658dd4da8d52b87a8d1ea00c.zip
sh: Fixup pte_mkhuge() build failure.
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>
Diffstat (limited to 'include/asm-sh/pgtable.h')
-rw-r--r--include/asm-sh/pgtable.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-sh/pgtable.h b/include/asm-sh/pgtable.h
index f87504abb43f..c84901dbd8e5 100644
--- a/include/asm-sh/pgtable.h
+++ b/include/asm-sh/pgtable.h
@@ -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)