WSL2-Linux-Kernel/arch/arm/mach-davinci
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
..
include/mach ARM: davinci: Replace HTTP links with HTTPS ones 2020-07-21 20:21:33 +05:30
Kconfig arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2020-12-15 12:13:42 -08:00
Makefile ARM: davinci: remove legacy timer support 2020-01-13 13:20:00 +05:30
Makefile.boot License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
asp.h ARM: davinci: wrap HW interrupt numbers with a macro 2019-02-19 19:40:52 +05:30
board-da830-evm.c mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
board-da850-evm.c mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
board-dm355-evm.c mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
board-dm355-leopard.c mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
board-dm365-evm.c mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
board-dm644x-evm.c ARM: SoC platform updates 2020-10-24 10:33:08 -07:00
board-dm646x-evm.c ARM: SoC platform updates 2020-10-24 10:33:08 -07:00
board-mityomapl138.c mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
board-neuros-osd2.c mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
board-omapl138-hawk.c mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
board-sffsdr.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
clock.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
common.c ARM: davinci: pull davinci_intc_base into the respective intc drivers 2019-02-19 19:40:38 +05:30
cpuidle.c ARM: davinci: Replace HTTP links with HTTPS ones 2020-07-21 20:21:33 +05:30
cpuidle.h ARM: davinci: Replace HTTP links with HTTPS ones 2020-07-21 20:21:33 +05:30
da8xx-dt.c ARM: davinci: Replace HTTP links with HTTPS ones 2020-07-21 20:21:33 +05:30
da830.c ARM: davinci: da830: switch to using the clocksource driver 2019-08-08 00:22:49 +05:30
da850.c ARM: davinci: Replace HTTP links with HTTPS ones 2020-07-21 20:21:33 +05:30
davinci.h ARM: davinci: move timer definitions to davinci.h 2019-08-08 00:22:49 +05:30
ddr2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
devices-da8xx.c dma-mapping: merge <linux/dma-contiguous.h> into <linux/dma-map-ops.h> 2020-10-06 07:07:04 +02:00
devices.c ARM: SoC: late updates 2020-02-08 14:17:27 -08:00
dm355.c ARM: davinci: dm355: switch to using the clocksource driver 2019-08-08 00:22:49 +05:30
dm365.c ARM: davinci: dm365: switch to using the clocksource driver 2020-01-13 13:20:00 +05:30
dm644x.c ARM: davinci: dm644x: switch to using the clocksource driver 2019-08-26 17:49:07 +05:30
dm646x.c ARM: davinci: dm646x: Fix a typo in the comment 2019-08-26 17:51:28 +05:30
irqs.h ARM: davinci: make irqs.h a local header 2019-02-19 19:44:02 +05:30
mux.c ARM: davinci: davinci_cfg_reg cannot be init 2015-02-18 12:20:25 +01:00
mux.h Davinci: eliminate pinmux offset verbosity 2010-05-06 15:02:09 -07:00
pdata-quirks.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pm.c ARM: davinci: Replace HTTP links with HTTPS ones 2020-07-21 20:21:33 +05:30
pm_domain.c ARM: davinci: da8xx-dt: switch to device tree clocks 2018-06-26 16:20:03 +05:30
psc.h ARM: davinci: remove legacy clocks 2018-06-26 16:15:55 +05:30
serial.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
sleep.S ARM: davinci: Replace HTTP links with HTTPS ones 2020-07-21 20:21:33 +05:30
sram.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sram.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
usb-da8xx.c ARM: davinci: make irqs.h a local header 2019-02-19 19:44:02 +05:30
usb.c ARM: davinci: make irqs.h a local header 2019-02-19 19:44:02 +05:30