Go to file
Mike Rapoport 555e30a54d arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL
BugLink: https://bugs.launchpad.net/bugs/1980399

commit 5e545df329 upstream.

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>
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 8dd559d53b3b ("arm: ioremap: don't abuse pfn_valid() to check if pfn is in RAM")
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2022-07-11 16:39:53 +02:00
Documentation arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-07-11 16:39:53 +02:00
LICENSES
arch arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-07-11 16:39:53 +02:00
block block-map: add __GFP_ZERO flag for alloc_page in function bio_copy_kern 2022-07-11 16:39:44 +02:00
certs UBUNTU: SAUCE: Dump stack when X.509 certificates cannot be loaded 2021-11-24 15:28:35 +01:00
crypto crypto: authenc - Fix sleep in atomic context in decrypt_tail 2022-05-20 15:18:32 +02:00
debian UBUNTU: debian/dkms-versions -- update from kernel-versions (main/2022.05.30) 2022-06-15 15:12:08 +02:00
debian.master UBUNTU: upstream stable to v5.4.193 2022-07-11 16:39:50 +02:00
drivers can: grcan: only use the NAPI poll budget for RX 2022-07-11 16:39:53 +02:00
fs arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-07-11 16:39:53 +02:00
include arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-07-11 16:39:53 +02:00
init init/main.c: return 1 from handled __setup() functions 2022-05-20 15:19:50 +02:00
ipc shm: extend forced shm destroy to support objects from several IPC nses 2022-02-03 18:57:09 +01:00
kernel genirq: Synchronize interrupt thread startup 2022-07-11 16:39:32 +02:00
lib hex2bin: fix access beyond string end 2022-06-22 14:51:05 +02:00
mm arm: remove CONFIG_ARCH_HAS_HOLES_MEMORYMODEL 2022-07-11 16:39:53 +02:00
net tcp: make sure treq->af_specific is initialized 2022-07-11 16:39:47 +02:00
samples samples/kretprobes: Fix return value if register_kretprobe() failed 2022-01-13 18:42:26 +01:00
scripts gcc-plugins: latent_entropy: use /dev/urandom 2022-06-22 14:50:37 +02:00
security UBUNTU: SAUCE: debug: Lock down kgdb 2022-05-21 11:27:20 -03:00
sound ALSA: pcm: Fix potential AB/BA lock with buffer_mutex and mmap_lock 2022-07-11 16:39:47 +02:00
tools selftests: mirror_gre_bridge_1q: Avoid changing PVID while interface is operational 2022-07-11 16:39:39 +02:00
ubuntu UBUNTU: [Packaging] Add support for ODM drivers 2021-01-26 17:27:59 -07:00
usr
virt KVM: Prevent module exit until all VMs are freed 2022-05-20 15:19:31 +02:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS UBUNTU: ODM: MAINTAINERS: Add Advantech AHC1EC0 embedded controller entry 2021-02-19 16:45:06 +01:00
Makefile Linux 5.4.193 2022-07-11 16:39:50 +02:00
README
Ubuntu.md UBUNTU: [Packaging] update Ubuntu.md 2021-11-05 16:43:42 +01:00
dropped.txt
snapcraft.yaml
update-dkms-versions UBUNTU: [Packaging] resync update-dkms-versions helper 2021-11-26 15:10:03 +01:00
update-version-dkms UBUNTU: [Packaging] switch to kernel-versions 2021-09-20 18:50:21 +02:00

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.