[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 7 Jul 2016 17:05:36 +0800
From: Ganesh Mahendran <opensource.ganesh@...il.com>
To: linux-kernel@...r.kernel.org, linux-mm@...ck.org
Cc: akpm@...ux-foundation.org, minchan@...nel.org, ngupta@...are.org,
sergey.senozhatsky.work@...il.com, mingo@...hat.com,
rostedt@...dmis.org, Ganesh Mahendran <opensource.ganesh@...il.com>
Subject: [PATCH v4 6/8] mm/zsmalloc: add __init,__exit attribute
Add __init,__exit attribute for function that only called in
module init/exit to save memory.
Signed-off-by: Ganesh Mahendran <opensource.ganesh@...il.com>
----
v4:
remove __init/__exit from zsmalloc_mount/zsmalloc_umount
v3:
revert change in v2 - Sergey
v2:
add __init/__exit for zs_register_cpu_notifier/zs_unregister_cpu_notifier
---
mm/zsmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index ded312b..780eabd 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1344,7 +1344,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;
--
1.9.1
Powered by blists - more mailing lists