mm/page_alloc: make alloc_node_mem_map() __init rather than __ref
authorMike Rapoport <rppt@linux.ibm.com>
Thu, 2 Sep 2021 21:58:10 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:15 +0000 (09:58 -0700)
commit3b446da6be7a722d769e23f68dbaf4ebb2eda542
tree11614b5aeeded5d9a9213dcb250c8d98eb3fd510
parentb346075fcf5dda7f9e9ae671703aae60e8a94564
mm/page_alloc: make alloc_node_mem_map() __init rather than __ref

alloc_node_mem_map() is never only called from free_area_init_node() that
is an __init function.

Make the actual alloc_node_mem_map() also __init and its stub version
static inline.

Link: https://lkml.kernel.org/r/20210716064124.31865-1-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c