staging: erofs: fixed -Wmissing-prototype warnings by moving prototypes to header...
authorJeremy Sowden <jeremy@azazel.net>
Tue, 8 Jan 2019 11:31:48 +0000 (11:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2019 09:44:20 +0000 (10:44 +0100)
Moved prototypes for two functions to a header file in order to fix the
following warnings:

  drivers/staging/erofs/unzip_vle.c:577:6: warning: no previous prototype for ‘erofs_workgroup_free_rcu’ [-Wmissing-prototypes]
   void erofs_workgroup_free_rcu(struct erofs_workgroup *grp)
        ^~~~~~~~~~~~~~~~~~~~~~~~

  drivers/staging/erofs/unzip_vle.c:1702:5: warning: no previous prototype for ‘z_erofs_map_blocks_iter’ [-Wmissing-prototypes]
   int z_erofs_map_blocks_iter(struct inode *inode,
       ^~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/data.c
drivers/staging/erofs/internal.h
drivers/staging/erofs/utils.c

index 5a55f0bfdfbb268b09ca94014379fbb0d417005e..329fa4fa3e9c5f9963dae105f5e5363702881abe 100644 (file)
@@ -165,12 +165,6 @@ err_out:
        return err;
 }
 
-#ifdef CONFIG_EROFS_FS_ZIP
-extern int z_erofs_map_blocks_iter(struct inode *,
-                                  struct erofs_map_blocks *,
-                                  struct page **, int);
-#endif
-
 int erofs_map_blocks_iter(struct inode *inode,
                          struct erofs_map_blocks *map,
                          struct page **mpage_ret, int flags)
index 49c5873833151dc56a09dbb670f42e17d907ed21..192f4028d85d13c088ea643a5117cfa9c51b1fd2 100644 (file)
@@ -288,6 +288,8 @@ static inline void erofs_workstation_cleanup_all(struct super_block *sb)
        erofs_shrink_workstation(EROFS_SB(sb), ~0UL, true);
 }
 
+extern void erofs_workgroup_free_rcu(struct erofs_workgroup *grp);
+
 #ifdef EROFS_FS_HAS_MANAGED_CACHE
 extern int erofs_try_to_free_all_cached_pages(struct erofs_sb_info *sbi,
        struct erofs_workgroup *egrp);
@@ -530,6 +532,11 @@ struct erofs_map_blocks_iter {
        struct page *mpage;
 };
 
+#ifdef CONFIG_EROFS_FS_ZIP
+extern int z_erofs_map_blocks_iter(struct inode *,
+                                  struct erofs_map_blocks *,
+                                  struct page **, int);
+#endif
 
 static inline struct page *
 erofs_get_inline_page(struct inode *inode,
index fc30025ef101679839d6871711787ef6f73d7946..aed211cd5875890081e0c5f017c03b69daa6352f 100644 (file)
@@ -104,8 +104,6 @@ int erofs_register_workgroup(struct super_block *sb,
        return err;
 }
 
-extern void erofs_workgroup_free_rcu(struct erofs_workgroup *grp);
-
 static void  __erofs_workgroup_free(struct erofs_workgroup *grp)
 {
        atomic_long_dec(&erofs_global_shrink_cnt);