Commit 5286031693d14ae20ce4298d002eddc2044e19a4

Authored by Paul Mundt
1 parent 64e34ca99a

sh: Fix up pte_mkhuge() build breakage for SH-5.

Applies the fix from 5b67954e804465a4658dd4da8d52b87a8d1ea00c to
pgtable_64.h.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

include/asm-sh/pgtable_64.h
... ... @@ -138,6 +138,14 @@
138 138 #endif
139 139  
140 140 /*
  141 + * Stub out _PAGE_SZHUGE if we don't have a good definition for it,
  142 + * to make pte_mkhuge() happy.
  143 + */
  144 +#ifndef _PAGE_SZHUGE
  145 +# define _PAGE_SZHUGE (0)
  146 +#endif
  147 +
  148 +/*
141 149 * Default flags for a Kernel page.
142 150 * This is fundametally also SHARED because the main use of this define
143 151 * (other than for PGD/PMD entries) is for the VMALLOC pool which is