zcache/zbud: Fix __init mismatch
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 15 Feb 2013 17:53:44 +0000 (12:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 18:16:11 +0000 (10:16 -0800)
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>
drivers/staging/zcache/zbud.c

index 465497888984303effeb55f75e963c97e3fa9b2c..ee927e8b19bd68d45782a921b51b912f400c737b 100644 (file)
@@ -1047,7 +1047,7 @@ out:
        return ret;
 }
 
-void __init zbud_init(void)
+void zbud_init(void)
 {
        int i;
 
This page took 0.026232 seconds and 5 git commands to generate.