Skip to content

Commit

Permalink
zcache/zbud: Fix __init mismatch
Browse files Browse the repository at this point in the history
We get:
WARNING: drivers/staging/zcache/zcache.o(.text+0x13a1): Section mismatch
in reference from the function zcache_init() to the function
.init.text:zbud_init()
The function zcache_init() references
the function __init zbud_init().
This is often because zcache_init lacks a __init
annotation or the annotation of zbud_init is wrong.

And this fixes it.

Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Konrad Rzeszutek Wilk authored and Greg Kroah-Hartman committed Feb 15, 2013
1 parent feb897e commit d489082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/zcache/zbud.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ unsigned int zbud_make_zombie_lru(struct tmem_handle *th, unsigned char **data,
return ret;
}

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

Expand Down

0 comments on commit d489082

Please sign in to comment.