From: Konrad Rzeszutek Wilk Date: Fri, 15 Feb 2013 17:53:44 +0000 (-0500) Subject: zcache/zbud: Fix __init mismatch X-Git-Url: http://drtracing.org/?a=commitdiff_plain;ds=sidebyside;h=d489082ac690f7cf784e66cfd74f076a361740ba;p=deliverable%2Flinux.git zcache/zbud: Fix __init mismatch 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 Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/zcache/zbud.c b/drivers/staging/zcache/zbud.c index 465497888984..ee927e8b19bd 100644 --- a/drivers/staging/zcache/zbud.c +++ b/drivers/staging/zcache/zbud.c @@ -1047,7 +1047,7 @@ out: return ret; } -void __init zbud_init(void) +void zbud_init(void) { int i;