5 May 12:26
[PATCH, 2.6.17-rc3-currentgit] jffs2: fix __init usage
Stelian Pop <stelian <at> popies.net>
2006-05-05 10:26:31 GMT
2006-05-05 10:26:31 GMT
Hi,
Compiling jffs2 as a module gives:
WARNING: fs/jffs2/jffs2.o - Section mismatch: reference to
.init.text:jffs2_zlib_init from .text between
'jffs2_compressors_init' (at offset 0xa0) and 'jffs2_compressors_exit'
The attached patch fixes that by adding the correct __init tags to
jffs2_compressors_init() and each compressor initialisation functions.
Signed-off-by: Stelian Pop <stelian <at> popies.net>
---
compr.c | 2 +-
compr_rtime.c | 2 +-
compr_rubin.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff -r 8d66b80a7a7c fs/jffs2/compr.c
--- a/fs/jffs2/compr.c Fri May 5 10:50:10 2006 +0200
+++ b/fs/jffs2/compr.c Fri May 5 11:17:03 2006 +0200
@@ -412,7 +412,7 @@ void jffs2_free_comprbuf(unsigned char *
kfree(comprbuf);
}
-int jffs2_compressors_init(void)
+int __init jffs2_compressors_init(void)
{
/* Registering compressors */
(Continue reading)
RSS Feed