[JFFS2] Fix section mismatch warnings in JFFS2.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue May 16 11:59:02 EDT 2006


Commit:     7d2beb135986477f53da77303356bd04329f8d0e
Parent:     cead4dbc03ba6eb2e35bac04439b76a0cc2286ce
Author:     David Brownell <dbrownell at users.sourceforge.net>
AuthorDate: Tue May 16 16:08:10 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Tue May 16 16:08:10 2006 +0100

    [JFFS2] Fix section mismatch warnings in JFFS2.
    
    Mark certain functions with __init and __exit appropriately.
    
    Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

 fs/jffs2/compr.c      |    4 ++--
 fs/jffs2/compr_zlib.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/jffs2/compr.c b/fs/jffs2/compr.c
index e7944e6..5f45e01 100644
--- a/fs/jffs2/compr.c
+++ b/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
@@ -440,7 +440,7 @@ #endif
         return 0;
 }
 
-int jffs2_compressors_exit(void)
+int __exit jffs2_compressors_exit(void)
 {
 /* Unregistering compressors */
 #ifdef CONFIG_JFFS2_RUBIN
diff --git a/fs/jffs2/compr_zlib.c b/fs/jffs2/compr_zlib.c
index 5c63e0c..d43cbac 100644
--- a/fs/jffs2/compr_zlib.c
+++ b/fs/jffs2/compr_zlib.c
@@ -60,7 +60,7 @@ static int __init alloc_workspaces(void)
 	return 0;
 }
 
-static void free_workspaces(void)
+static void __exit free_workspaces(void)
 {
 	vfree(def_strm.workspace);
 	vfree(inf_strm.workspace);
@@ -216,7 +216,7 @@ int __init jffs2_zlib_init(void)
     return ret;
 }
 
-void jffs2_zlib_exit(void)
+void __exit jffs2_zlib_exit(void)
 {
     jffs2_unregister_compressor(&jffs2_zlib_comp);
     free_workspaces();



More information about the linux-mtd-cvs mailing list