arch: Add pmd_pfn() where it is missing
authorMike Rapoport <rppt@linux.ibm.com>
Fri, 4 Feb 2022 18:49:20 +0000 (13:49 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:59:02 +0000 (12:59 -0400)
commit7106c51ee9a1b65eff63496636fce36bf246c1a0
tree7532d39eed0764ff0b0d1369262272c320dc4b30
parenteed05e54d275b3cfc5d8c79843c5276a5878e94a
arch: Add pmd_pfn() where it is missing

We need to use this function in common code, so define it for
architectures and/or configrations that miss it.  The result of
pmd_pfn() will only be used if TRANSPARENT_HUGEPAGE is enabled,
but a function or macro called pmd_pfn() must be defined, even
on machines with two level page tables.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
18 files changed:
arch/alpha/include/asm/pgtable.h
arch/arc/include/asm/hugepage.h
arch/arc/include/asm/pgtable-levels.h
arch/arm/include/asm/pgtable-2level.h
arch/csky/include/asm/pgtable.h
arch/hexagon/include/asm/pgtable.h
arch/ia64/include/asm/pgtable.h
arch/m68k/include/asm/mcf_pgtable.h
arch/m68k/include/asm/motorola_pgtable.h
arch/m68k/include/asm/sun3_pgtable.h
arch/microblaze/include/asm/pgtable.h
arch/nds32/include/asm/pgtable.h
arch/nios2/include/asm/pgtable.h
arch/openrisc/include/asm/pgtable.h
arch/parisc/include/asm/pgtable.h
arch/sh/include/asm/pgtable_32.h
arch/um/include/asm/pgtable.h
arch/xtensa/include/asm/pgtable.h