• M
    ia64: forbid using VIRTUAL_MEM_MAP with FLATMEM · ea34f78f
    Mike Rapoport 提交于
    Virtual memory map was intended to avoid wasting memory on the memory map
    on systems with large holes in the physical memory layout. Long ago it been
    superseded first by DISCONTIGMEM and then by SPARSEMEM. Moreover,
    SPARSEMEM_VMEMMAP provide the same functionality in much more portable way.
    
    As the first step to removing the VIRTUAL_MEM_MAP forbid it's usage with
    FLATMEM and panic on systems with large holes in the physical memory
    layout that try to run FLATMEM kernels.
    
    Link: https://lkml.kernel.org/r/20201101170454.9567-7-rppt@kernel.orgSigned-off-by: NMike 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: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    ea34f78f
init.c 18.2 KB