Skip to content

Commit

Permalink
staging: zcache: mark zbud_init/zcache_comp_init as __init
Browse files Browse the repository at this point in the history
These functions are called only when system is initializing, so mark __init
for them to free memory

Acked-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Xiao Guangrong authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent f64d94f commit 2ad0f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/zcache/zcache-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ static void zbud_evict_pages(int nr)
return;
}

static void zbud_init(void)
static void __init zbud_init(void)
{
int i;

Expand Down Expand Up @@ -1985,7 +1985,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;

Expand Down

0 comments on commit 2ad0f81

Please sign in to comment.