mm: pgtable: add shortcuts for accessing kernel PMD and PTE

Linux Kernel / Linux Kernel - Mike Rapoport [linux.ibm.com] - 9 June 2020 16:39 UTC

The powerpc 32-bit implementation of pgtable has nice shortcuts for accessing kernel PMD and PTE for a given virtual address. Make these helpers available for all architectures.

[rppt@linux.ibm.com: microblaze: fix page table traversal in setup_rt_frame()] Link: http://lkml.kernel.org/r/20200518191511.GD1118872@kernel.org [akpm@linux-foundation.org: s/pmd_ptr_k/pmd_off_k/ in various powerpc places]

e05c7b1f2bc4 mm: pgtable: add shortcuts for accessing kernel PMD and PTE
arch/arc/mm/highmem.c | 10 +---------
arch/arm/mach-sa1100/assabet.c | 2 +-
arch/arm/mm/highmem.c | 4 ++--
arch/arm/mm/ioremap.c | 31 ++++---------------------------
arch/arm/mm/mm.h | 5 -----
arch/arm/mm/mmu.c | 7 +------
arch/hexagon/include/asm/fixmap.h | 4 ----
arch/m68k/mm/motorola.c | 26 ++++----------------------
arch/microblaze/kernel/signal.c | 8 +-------
arch/microblaze/mm/init.c | 9 ---------
arch/mips/include/asm/fixmap.h | 3 ---
arch/mips/mm/c-r3k.c | 10 ++--------
arch/mips/mm/c-r4k.c | 10 ++--------
arch/mips/mm/c-tx39.c | 10 ++--------
arch/mips/mm/highmem.c | 2 +-
arch/nds32/include/asm/pgtable.h | 2 --
arch/nds32/mm/init.c | 13 ++-----------
arch/nds32/mm/proc.c | 6 +-----
arch/parisc/mm/fixmap.c | 6 +-----
arch/powerpc/include/asm/pgtable.h | 19 -------------------
arch/powerpc/mm/book3s32/mmu.c | 2 +-
arch/powerpc/mm/book3s32/tlb.c | 4 ++--
arch/powerpc/mm/kasan/8xx.c | 4 ++--
arch/powerpc/mm/kasan/book3s_32.c | 2 +-
arch/powerpc/mm/kasan/kasan_init_32.c | 8 ++++----
arch/powerpc/mm/nohash/40x.c | 4 ++--
arch/powerpc/mm/nohash/8xx.c | 2 +-
arch/powerpc/mm/pgtable_32.c | 4 ++--
arch/s390/mm/pageattr.c | 10 +---------
arch/sh/mm/cache-sh4.c | 8 +-------
arch/sh/mm/kmap.c | 5 +----
arch/sparc/mm/highmem.c | 12 ++----------
arch/sparc/mm/init_64.c | 6 +-----
arch/sparc/mm/io-unit.c | 10 ++--------
arch/sparc/mm/iommu.c | 8 +-------
arch/um/kernel/mem.c | 10 +---------
arch/um/kernel/trap.c | 8 +-------
arch/unicore32/mm/mm.h | 10 ----------
arch/x86/mm/init_32.c | 26 +++-----------------------
arch/xtensa/include/asm/fixmap.h | 8 --------
arch/xtensa/mm/highmem.c | 2 +-
arch/xtensa/mm/kasan_init.c | 10 ++--------
arch/xtensa/mm/mmu.c | 5 +----
include/linux/pgtable.h | 24 ++++++++++++++++++++++++
44 files changed, 82 insertions(+), 297 deletions(-)

Upstream: git.kernel.org


  • Share