From: Paul Mundt Date: Tue, 12 Feb 2008 07:55:21 +0000 (+0900) Subject: sh: Fix up pte_mkhuge() build breakage for SH-5. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5286031693d14ae20ce4298d002eddc2044e19a4;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git sh: Fix up pte_mkhuge() build breakage for SH-5. Applies the fix from 5b67954e804465a4658dd4da8d52b87a8d1ea00c to pgtable_64.h. Signed-off-by: Paul Mundt --- diff --git a/include/asm-sh/pgtable_64.h b/include/asm-sh/pgtable_64.h index 972211671c9..bfdcb2084fa 100644 --- a/include/asm-sh/pgtable_64.h +++ b/include/asm-sh/pgtable_64.h @@ -137,6 +137,14 @@ static __inline__ void pmd_set(pmd_t *pmdp,pte_t *ptep) #define _PAGE_SZHUGE (_PAGE_SIZE0 | _PAGE_SIZE1) #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 (0) +#endif + /* * Default flags for a Kernel page. * This is fundametally also SHARED because the main use of this define