From: Kirill A. Shutemov Date: Thu, 1 Feb 2018 00:17:58 +0000 (-0800) Subject: mips: use generic_pmdp_establish as pmdp_establish X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b6b34b2dfb7bab7b76a08862fe034c3bb29ec20d;p=openwrt%2Fstaging%2Fblogic.git mips: use generic_pmdp_establish as pmdp_establish MIPS doesn't support hardware dirty/accessed bits. generic_pmdp_establish() is suitable in this case. Link: http://lkml.kernel.org/r/20171213105756.69879-6-kirill.shutemov@linux.intel.com Signed-off-by: Kirill A. Shutemov Cc: Ralf Baechle Cc: David Daney Cc: Vlastimil Babka Cc: Andrea Arcangeli Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index 1a508a74d48d..129e0328367f 100644 --- a/arch/mips/include/asm/pgtable.h +++ b/arch/mips/include/asm/pgtable.h @@ -534,6 +534,9 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma, #ifdef CONFIG_TRANSPARENT_HUGEPAGE +/* We don't have hardware dirty/accessed bits, generic_pmdp_establish is fine.*/ +#define pmdp_establish generic_pmdp_establish + #define has_transparent_hugepage has_transparent_hugepage extern int has_transparent_hugepage(void);