Skip to contentSkip to conversation

mm/zsmalloc: add __init,__exit attribute

PATCH New [email protected] 1 participant 1 message Jul 28, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 69/101 mm/zsmalloc: add __init,__exit attribute

From: Ganesh Mahendran <[email protected]>
Subject: mm/zsmalloc: add __init,__exit attribute

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

---

 mm/zsmalloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/zsmalloc.c renamed from mm/zsmalloc.c~mm-zsmalloc-add-__init__exit-attribute +1 -1
diff -puN mm/zsmalloc.c~mm-zsmalloc-add-__init__exit-attribute mm/zsmalloc.c
@@ -1341,7 +1341,7 @@ static void zs_unregister_cpu_notifier(v
 	cpu_notifier_register_done();
 }
 
-static void init_zs_size_classes(void)
+static void __init init_zs_size_classes(void)
 {
 	int nr;
 

_