aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/pgtable.h')
-rw-r--r--include/asm-generic/pgtable.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index 2cfa3075d148..bfbb44a5ad38 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@ -983,6 +983,8 @@ int pud_set_huge(pud_t *pud, phys_addr_t addr, pgprot_t prot);
983int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot); 983int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot);
984int pud_clear_huge(pud_t *pud); 984int pud_clear_huge(pud_t *pud);
985int pmd_clear_huge(pmd_t *pmd); 985int pmd_clear_huge(pmd_t *pmd);
986int pud_free_pmd_page(pud_t *pud);
987int pmd_free_pte_page(pmd_t *pmd);
986#else /* !CONFIG_HAVE_ARCH_HUGE_VMAP */ 988#else /* !CONFIG_HAVE_ARCH_HUGE_VMAP */
987static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) 989static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot)
988{ 990{
@@ -1008,6 +1010,14 @@ static inline int pmd_clear_huge(pmd_t *pmd)
1008{ 1010{
1009 return 0; 1011 return 0;
1010} 1012}
1013static inline int pud_free_pmd_page(pud_t *pud)
1014{
1015 return 0;
1016}
1017static inline int pmd_free_pte_page(pmd_t *pmd)
1018{
1019 return 0;
1020}
1011#endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */ 1021#endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */
1012 1022
1013#ifndef __HAVE_ARCH_FLUSH_PMD_TLB_RANGE 1023#ifndef __HAVE_ARCH_FLUSH_PMD_TLB_RANGE