]> www.infradead.org Git - users/willy/linux.git/commit
mm/page_alloc.c: drop uneeded __meminit and __meminitdata
authorOscar Salvador <osalvador@suse.de>
Wed, 5 Dec 2018 00:14:00 +0000 (11:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Dec 2018 22:08:46 +0000 (09:08 +1100)
commit7502a2166839de8179a637f95a302e48b61ea27c
tree14fd203f488983805f5968b065c8bbaac2e11c5f
parent1e8ef97355a8c806210d67c3758a33fe1c866b07
mm/page_alloc.c: drop uneeded __meminit and __meminitdata

Since 03e85f9d5f1 ("mm/page_alloc: Introduce
free_area_init_core_hotplug"), some functions changed to only be called
during system initialization.  Concretly, free_area_init_node() and the
functions that hang from it.

Also, some variables are no longer used after the system has gone through
initialization.  So this could be considered as a late clean-up for that
patch.

This patch changes the functions from __meminit to __init, and the
variables from __meminitdata to __initdata.

In return, we get some KBs back:

Before:
Freeing unused kernel image memory: 2472K

After:
Freeing unused kernel image memory: 2480K

Link: http://lkml.kernel.org/r/20181204111507.4808-1-osalvador@suse.de
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Pavel Tatashin <pavel.tatashin@microsoft.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/page_alloc.c