OpenCloudOS-Kernel/arch/arm/mach-exynos
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: exynos: stop selecting PLAT_SAMSUNG 2020-08-19 21:14:13 +02:00
common.h ARM: exynos: use private samsung_cpu_id copy 2020-08-19 21:10:50 +02:00
exynos-smc.S ARM: use arch_extension directive instead of arch argument 2019-06-19 09:44:25 -07:00
exynos.c Samsung mach/soc changes for v5.10 2020-09-26 12:55:43 -07:00
firmware.c ARM: exynos: Fix a leaked reference by adding missing of_node_put 2019-03-19 21:34:38 +01:00
headsmp.S ARM: smp: remove arch-provided "pen_release" 2019-02-01 22:05:23 +00:00
mcpm-exynos.c ARM: exynos: MCPM: Restore big.LITTLE cpuidle support 2020-06-29 20:27:33 +02:00
platsmp.c ARM: exynos: use private samsung_cpu_id copy 2020-08-19 21:10:50 +02:00
pm.c ARM: exynos: use private samsung_cpu_id copy 2020-08-19 21:10:50 +02:00
sleep.S ARM: use arch_extension directive instead of arch argument 2019-06-19 09:44:25 -07:00
smc.h ARM: samsung: Rename Samsung and Exynos to lowercase 2020-01-07 20:44:22 +01:00
suspend.c ARM: samsung: Rename Samsung and Exynos to lowercase 2020-01-07 20:44:22 +01:00