Move most common defines into the generic tlb.h to avoid duplicate code. Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: linux-arch@xxxxxxxxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx Signed-off-by: Richard Weinberger <richard@xxxxxx> --- include/asm-generic/tlb.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index 5672d7e..6e15413 100644 --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h @@ -149,6 +149,30 @@ static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page) #define __tlb_remove_pmd_tlb_entry(tlb, pmdp, address) do {} while (0) #endif +#ifndef tlb_start_vma +#define tlb_start_vma(tlb, vma) do {} while (0) +#endif + +#ifndef tlb_end_vma +#define tlb_end_vma(tlb, vma) do {} while (0) +#endif + +#ifndef __tlb_remove_tlb_entry +#define __tlb_remove_tlb_entry(tlb, ptep, address) do {} while (0) +#endif + +#ifndef tlb_flush +#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) +#endif + +#ifndef __pte_free_tlb +#define __pte_free_tlb(tlb, pte, address) pte_free((tlb)->mm, pte) +#endif + +#ifndef __pmd_free_tlb +#define __pmd_free_tlb(tlb, pmd, address) pmd_free((tlb)->mm, pmd) +#endif + #define tlb_remove_pmd_tlb_entry(tlb, pmdp, address) \ do { \ tlb->need_flush = 1; \ -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html