From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752620AbcGAGm3 (ORCPT ); Fri, 1 Jul 2016 02:42:29 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:33946 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752473AbcGAGm0 (ORCPT ); Fri, 1 Jul 2016 02:42:26 -0400 From: Ganesh Mahendran To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, minchan@kernel.org, ngupta@vflare.org, sergey.senozhatsky.work@gmail.com, rostedt@goodmis.org, mingo@redhat.com, Ganesh Mahendran Subject: [PATCH 7/8] mm/zsmalloc: add __init,__exit attribute Date: Fri, 1 Jul 2016 14:41:05 +0800 Message-Id: <1467355266-9735-7-git-send-email-opensource.ganesh@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467355266-9735-1-git-send-email-opensource.ganesh@gmail.com> References: <1467355266-9735-1-git-send-email-opensource.ganesh@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add __init,__exit attribute for function that is only called in module init/exit Signed-off-by: Ganesh Mahendran --- mm/zsmalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 6fc631a..1c7460b 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1349,7 +1349,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; @@ -1896,7 +1896,7 @@ static struct file_system_type zsmalloc_fs = { .kill_sb = kill_anon_super, }; -static int zsmalloc_mount(void) +static int __init zsmalloc_mount(void) { int ret = 0; @@ -1907,7 +1907,7 @@ static int zsmalloc_mount(void) return ret; } -static void zsmalloc_unmount(void) +static void __exit zsmalloc_unmount(void) { kern_unmount(zsmalloc_mnt); } -- 1.9.1