linux/arch/parisc/mm
John David Anglin 3434d8837f parisc: Drop __init from map_pages declaration
commit 9129886b88185962538180625ca8051362b01327 upstream.

With huge kernel pages, we randomly eat a SPARC in map_pages(). This
is fixed by dropping __init from the declaration.

However, map_pages references the __init routine memblock_alloc_try_nid
via memblock_alloc.  Thus, it needs to be marked with __ref.

memblock_alloc is only called before the kernel text is set to readonly.

The __ref on free_initmem is no longer needed.

Comment regarding map_pages being in the init section is removed.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-23 11:59:54 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
fault.c parisc: Mark expected switch fall-throughs in fault.c 2019-07-31 16:16:00 +02:00
fixmap.c parisc: Fix set_fixmap() on PA1.x CPUs 2021-11-17 09:48:49 +01:00
hugetlbpage.c parisc: Update huge TLB page support to use per-pagetable spinlock 2019-05-03 23:47:41 +02:00
init.c parisc: Drop __init from map_pages declaration 2022-02-23 11:59:54 +01:00
ioremap.c parisc: Fix vmap memory leak in ioremap()/iounmap() 2019-10-14 21:44:17 +02:00