mm/zsmalloc: add __init,__exit attribute

Add __init,__exit attribute for function that only called in module
init/exit to save memory.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ganesh Mahendran <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Ganesh Mahendran 2016-07-28 15:47:57 -07:00 • committed by Linus Torvalds
commit 35b3445e97

View file

@ -1341,7 +1341,7 @@ static void zs_unregister_cpu_notifier(void)
cpu_notifier_register_done();
}
static void init_zs_size_classes(void)
static void __init init_zs_size_classes(void)
{
int nr;