]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
parisc: Drop __init from map_pages declaration
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 22 Jan 2022 18:19:49 +0000 (18:19 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 14 Apr 2022 09:32:13 +0000 (11:32 +0200)
commitf64bcaa0bc13e281c059ab9d9c985c5020920f32
treef915bd378ade8484bb260c2e8e234808532bb88b
parentd9a18c34d1c090d4b9d92d8b2b8107e3da1d4a72
parisc: Drop __init from map_pages declaration

BugLink: https://bugs.launchpad.net/bugs/1967582
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/parisc/mm/init.c