From: Ganesh Mahendran Date: Thu, 28 Jul 2016 22:47:57 +0000 (-0700) Subject: mm/zsmalloc: add __init,__exit attribute X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=35b3445e97352732f0d64a7e629f629b1d81827e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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/1467882338-4300-6-git-send-email-opensource.ganesh@gmail.com Signed-off-by: Ganesh Mahendran Cc: Sergey Senozhatsky Cc: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index acfdf69184a7..fa08236a9036 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -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;