WSL2-Linux-Kernel/arch/arm/mach-bcm
Mike Rapoport 5e545df329 arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL
ARM is the only architecture that defines CONFIG_ARCH_HAS_HOLES_MEMORYMODEL
which in turn enables memmap_valid_within() function that is intended to
verify existence  of struct page associated with a pfn when there are holes
in the memory map.

However, the ARCH_HAS_HOLES_MEMORYMODEL also enables HAVE_ARCH_PFN_VALID
and arch-specific pfn_valid() implementation that also deals with the holes
in the memory map.

The only two users of memmap_valid_within() call this function after
a call to pfn_valid() so the memmap_valid_within() check becomes redundant.

Remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL and memmap_valid_within() and rely
entirely on ARM's implementation of pfn_valid() that is now enabled
unconditionally.

Link: https://lkml.kernel.org/r/20201101170454.9567-9-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greg Ungerer <gerg@linux-m68k.org>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Meelis Roos <mroos@linux.ee>
Cc: Michael Schmitz <schmitzmic@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-15 12:13:42 -08:00
..
Kconfig arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2020-12-15 12:13:42 -08:00
Makefile ARM: bcm: Add support for BCM2711 SoC 2019-10-10 19:21:03 +02:00
bcm63xx.c
bcm63xx_pmb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
bcm63xx_smp.c ARM: SoC platform updates 2019-07-19 17:05:08 -07:00
bcm63xx_smp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bcm2711.c ARM: bcm: Add missing sentinel to bcm2711_compat[] 2019-12-15 19:32:28 -08:00
bcm_5301x.c
bcm_cygnus.c
bcm_hr2.c ARM: bcm: Add support for Broadcom Hurricane 2 SoC 2017-10-12 11:30:20 -07:00
bcm_kona_smc.c ARM: bcm: fix missing __iomem in bcm_kona_smc.c 2019-10-16 15:05:35 -07:00
bcm_kona_smc.h
bcm_nsp.c
board_bcm281xx.c ARM: bcm: fix a leaked reference by adding missing of_node_put 2019-05-20 09:34:26 -07:00
board_bcm2835.c ARM: mach-bcm: Switch bcm2835 and platsmp to SPDX identifier 2018-11-14 20:55:30 +01:00
board_bcm21664.c
board_bcm23550.c
brcmstb.c soc: brcmstb: biuctrl: Move to early_initcall 2017-12-20 17:37:44 -08:00
kona_l2_cache.c
kona_l2_cache.h
platsmp-brcmstb.c ARM: bcm: fix a leaked reference by adding missing of_node_put 2019-05-20 09:34:26 -07:00
platsmp.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
platsmp.h ARM: mach-bcm: Switch bcm2835 and platsmp to SPDX identifier 2018-11-14 20:55:30 +01:00