]> err.no Git - linux-2.6/commitdiff
[JFFS2] Fix section mismatch warnings in JFFS2.
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 16 May 2006 15:08:10 +0000 (16:08 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 16 May 2006 15:08:10 +0000 (16:08 +0100)
Mark certain functions with __init and __exit appropriately.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/compr.c
fs/jffs2/compr_zlib.c

index e7944e665b9fc9245135c0c455b959f47cc721a3..5f45e01d71ed790aca1f6dfe1bf8a33037f80722 100644 (file)
@@ -412,7 +412,7 @@ void jffs2_free_comprbuf(unsigned char *comprbuf, unsigned char *orig)
                 kfree(comprbuf);
 }
 
-int jffs2_compressors_init(void)
+int __init jffs2_compressors_init(void)
 {
 /* Registering compressors */
 #ifdef CONFIG_JFFS2_ZLIB
@@ -440,7 +440,7 @@ int jffs2_compressors_init(void)
         return 0;
 }
 
-int jffs2_compressors_exit(void)
+int __exit jffs2_compressors_exit(void)
 {
 /* Unregistering compressors */
 #ifdef CONFIG_JFFS2_RUBIN
index 5c63e0cdcf4c76cb98cbc86e8fae3720023f2439..d43cbac4fb9b13dbcd7f4038205ebe9a1ef84408 100644 (file)
@@ -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();