mm/zsmalloc: add __init,__exit attribute
Subsystems (2)
[email protected]
maintainerPATCH 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.
Signed-off-by Ganesh Mahendran <[email protected]>
Cc Sergey Senozhatsky <[email protected]>
Cc Minchan Kim <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
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
@@ -1341,7 +1341,7 @@ static void zs_unregister_cpu_notifier(vcpu_notifier_register_done (); } -static void init_zs_size_classes (void ) +static void __init init_zs_size_classes (void ) {int nr;
_