From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: lkml <linux-kernel@vger.kernel.org>
Cc: dwmw2@infradead.org, akpm <akpm@osdl.org>
Subject: [PATCH] jffs2: fix section mismatches
Date: Sat, 10 Jun 2006 13:28:03 -0700 [thread overview]
Message-ID: <20060610132803.8909971c.rdunlap@xenotime.net> (raw)
From: Randy Dunlap <rdunlap@xenotime.net>
Priority: not critical; makes init code discardable.
Fix section mismatch warnings:
WARNING: fs/jffs2/jffs2.o - Section mismatch: reference to .init.text:jffs2_zlib_init from .text between 'jffs2_compressors_init' (at offset 0x546) and 'jffs2_compressors_exit'
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
fs/jffs2/compr.c | 2 +-
fs/jffs2/compr_rtime.c | 2 +-
fs/jffs2/compr_rubin.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
--- linux-2617-rc6.orig/fs/jffs2/compr.c
+++ linux-2617-rc6/fs/jffs2/compr.c
@@ -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 */
#ifdef CONFIG_JFFS2_ZLIB
--- linux-2617-rc6.orig/fs/jffs2/compr_rtime.c
+++ linux-2617-rc6/fs/jffs2/compr_rtime.c
@@ -121,7 +121,7 @@ static struct jffs2_compressor jffs2_rti
#endif
};
-int jffs2_rtime_init(void)
+int __init jffs2_rtime_init(void)
{
return jffs2_register_compressor(&jffs2_rtime_comp);
}
--- linux-2617-rc6.orig/fs/jffs2/compr_rubin.c
+++ linux-2617-rc6/fs/jffs2/compr_rubin.c
@@ -344,7 +344,7 @@ static struct jffs2_compressor jffs2_rub
#endif
};
-int jffs2_rubinmips_init(void)
+int __init jffs2_rubinmips_init(void)
{
return jffs2_register_compressor(&jffs2_rubinmips_comp);
}
@@ -367,7 +367,7 @@ static struct jffs2_compressor jffs2_dyn
#endif
};
-int jffs2_dynrubin_init(void)
+int __init jffs2_dynrubin_init(void)
{
return jffs2_register_compressor(&jffs2_dynrubin_comp);
}
---
next reply other threads:[~2006-06-10 20:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-10 20:28 Randy.Dunlap [this message]
2006-06-10 22:00 ` David Woodhouse
2006-06-10 22:41 ` Sam Ravnborg
2006-06-10 23:29 ` Randy.Dunlap
2006-06-10 23:32 ` David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060610132803.8909971c.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=akpm@osdl.org \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®