Skip to content

Commit 924bd6a

Browse files
xzpeterakpm00
authored andcommitted
mm/x86: drop two unnecessary pud_leaf() definitions
pud_leaf() has a fallback macro defined in include/linux/pgtable.h already. Drop the extra two for x86. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Peter Xu <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Reviewed-by: Mike Rapoport (IBM) <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Andrey Konovalov <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: "Aneesh Kumar K.V" <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Muchun Song <[email protected]> Cc: "Naveen N. Rao" <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Vincenzo Frascino <[email protected]> Cc: Yang Shi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 83ea65d commit 924bd6a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

arch/x86/include/asm/pgtable.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,6 @@ static inline int pud_bad(pud_t pud)
10971097
return (pud_flags(pud) & ~(_KERNPG_TABLE | _PAGE_USER)) != 0;
10981098
}
10991099
#else
1100-
#define pud_leaf pud_large
11011100
static inline int pud_large(pud_t pud)
11021101
{
11031102
return 0;

include/asm-generic/pgtable-nopmd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ static inline int pud_none(pud_t pud) { return 0; }
3131
static inline int pud_bad(pud_t pud) { return 0; }
3232
static inline int pud_present(pud_t pud) { return 1; }
3333
static inline int pud_user(pud_t pud) { return 0; }
34-
static inline int pud_leaf(pud_t pud) { return 0; }
3534
static inline void pud_clear(pud_t *pud) { }
3635
#define pmd_ERROR(pmd) (pud_ERROR((pmd).pud))
3736

0 commit comments

Comments
 (0)