Skip to content

Commit

Permalink
tlb: arch: Remove empty __tlb_remove_tlb_entry() stubs
Browse files Browse the repository at this point in the history
If __tlb_remove_tlb_entry() is not defined by the architecture then
we provide an empty definition in asm-generic/tlb.h.

Remove the redundant empty definitions for sparc64 and x86.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Yu Zhao <yuzhao@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lkml.kernel.org/r/20210127235347.1402-6-will@kernel.org
  • Loading branch information
Will Deacon authored and Peter Zijlstra committed Jan 29, 2021
1 parent a72afd8 commit c7bd801
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion arch/sparc/include/asm/tlb_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ void flush_tlb_pending(void);

#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
#define tlb_flush(tlb) flush_tlb_pending()

/*
Expand Down
1 change: 0 additions & 1 deletion arch/x86/include/asm/tlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)

#define tlb_flush tlb_flush
static inline void tlb_flush(struct mmu_gather *tlb);
Expand Down

0 comments on commit c7bd801

Please sign in to comment.