Skip to content

Commit 4733fd3

Browse files
ozbenhtorvalds
authored andcommitted
mm: Remove duplicate definitions in MIPS and SH
Those definitions are already provided by asm-generic Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c56d300 commit 4733fd3

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

‎arch/mips/include/asm/pgalloc.h‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,6 @@ do { \
104104
tlb_remove_page((tlb), pte); \
105105
} while (0)
106106

107-
#ifdef CONFIG_32BIT
108-
109-
/*
110-
* allocating and freeing a pmd is trivial: the 1-entry pmd is
111-
* inside the pgd, so has no extra memory associated with it.
112-
*/
113-
#define pmd_free(mm, x) do { } while (0)
114-
#define __pmd_free_tlb(tlb, x, addr) do { } while (0)
115-
116-
#endif
117-
118107
#ifdef CONFIG_64BIT
119108

120109
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)

‎arch/sh/include/asm/pgalloc.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ do { \
7979
tlb_remove_page((tlb), (pte)); \
8080
} while (0)
8181

82-
/*
83-
* allocating and freeing a pmd is trivial: the 1-entry pmd is
84-
* inside the pgd, so has no extra memory associated with it.
85-
*/
86-
87-
#define pmd_free(mm, x) do { } while (0)
88-
#define __pmd_free_tlb(tlb,x,addr) do { } while (0)
89-
9082
static inline void check_pgt_cache(void)
9183
{
9284
quicklist_trim(QUICK_PGD, NULL, 25, 16);

0 commit comments

Comments
 (0)