Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+8
+8
include/asm-sh/pgtable.h
··· 197 197 # endif 198 198 #endif 199 199 200 + /* 201 + * Stub out _PAGE_SZHUGE if we don't have a good definition for it, 202 + * to make pte_mkhuge() happy. 203 + */ 204 + #ifndef _PAGE_SZHUGE 205 + # define _PAGE_SZHUGE (_PAGE_FLAGS_HARD) 206 + #endif 207 + 200 208 #define _PAGE_CHG_MASK \ 201 209 (PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | _PAGE_DIRTY) 202 210