diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-02-15 12:53:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-15 10:16:11 -0800 |
commit | d489082ac690f7cf784e66cfd74f076a361740ba (patch) | |
tree | d84e624aba5b8f66017296c9340ccbbc2a59fc76 /drivers/staging | |
parent | feb897e1f48918bf5cd60a075a6641ed41ace988 (diff) | |
download | op-kernel-dev-d489082ac690f7cf784e66cfd74f076a361740ba.zip op-kernel-dev-d489082ac690f7cf784e66cfd74f076a361740ba.tar.gz |
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 <dan.magenheimer@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/zcache/zbud.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/zcache/zbud.c b/drivers/staging/zcache/zbud.c index 4654978..ee927e8 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; |