From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx170.postini.com [74.125.245.170]) by kanga.kvack.org (Postfix) with SMTP id C5B936B006C for ; Tue, 19 Jun 2012 04:35:21 -0400 (EDT) Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 19 Jun 2012 08:29:00 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5J8ZE7F9044132 for ; Tue, 19 Jun 2012 18:35:14 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q5J8ZDbb021555 for ; Tue, 19 Jun 2012 18:35:13 +1000 Message-ID: <4FE039BE.6010406@linux.vnet.ibm.com> Date: Tue, 19 Jun 2012 16:35:10 +0800 From: Xiao Guangrong MIME-Version: 1.0 Subject: [PATCH 05/10] zcache: mark zbud_init/zcache_comp_init as __init References: <4FE0392E.3090300@linux.vnet.ibm.com> In-Reply-To: <4FE0392E.3090300@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Xiao Guangrong Cc: Andrew Morton , Seth Jennings , Dan Magenheimer , LKML , linux-mm@kvack.org These functions are called only when system is initializing, so mark __init for them to free memory Signed-off-by: Xiao Guangrong --- drivers/staging/zcache/zcache-main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c index 82d752d..d194303 100644 --- a/drivers/staging/zcache/zcache-main.c +++ b/drivers/staging/zcache/zcache-main.c @@ -594,7 +594,7 @@ out: return; } -static void zbud_init(void) +static void __init zbud_init(void) { int i; @@ -1974,7 +1974,7 @@ static int __init enable_zcache_compressor(char *s) __setup("zcache=", enable_zcache_compressor); -static int zcache_comp_init(void) +static int __init zcache_comp_init(void) { int ret = 0; -- 1.7.7.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org