On Thu, Feb 29, 2024 at 04:42:53PM +0800, pet...@redhat.com wrote: > From: Peter Xu <pet...@redhat.com> > > They're the same macros underneath. Drop pXd_is_leaf(), instead always use > pXd_leaf(). > > At the meantime, instead of renames, drop the pXd_is_leaf() fallback > definitions directly in arch/powerpc/include/asm/pgtable.h. because similar > fallback macros for pXd_leaf() are already defined in > include/linux/pgtable.h. > > Cc: Michael Ellerman <m...@ellerman.id.au> > Cc: Nicholas Piggin <npig...@gmail.com> > Cc: "Aneesh Kumar K.V" <aneesh.ku...@kernel.org> > Cc: "Naveen N. Rao" <naveen.n....@linux.ibm.com> > Cc: linuxppc-dev@lists.ozlabs.org > Suggested-by: Christophe Leroy <christophe.le...@csgroup.eu> > Signed-off-by: Peter Xu <pet...@redhat.com> > --- > arch/powerpc/include/asm/book3s/64/pgtable.h | 10 ++++---- > arch/powerpc/include/asm/pgtable.h | 24 -------------------- > arch/powerpc/kvm/book3s_64_mmu_radix.c | 12 +++++----- > arch/powerpc/mm/book3s64/radix_pgtable.c | 14 ++++++------ > arch/powerpc/mm/pgtable.c | 6 ++--- > arch/powerpc/mm/pgtable_64.c | 6 ++--- > arch/powerpc/xmon/xmon.c | 6 ++--- > 7 files changed, 26 insertions(+), 52 deletions(-)
Reviewed-by: Jason Gunthorpe <j...@nvidia.com> Jason