mirror of https://gitee.com/openkylin/linux.git
staging: erofs: fixed -Wmissing-prototype warnings by moving prototypes to header file.
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>
This commit is contained in:
parent
0a64d62d53
commit
e7dfb1cff6
|
@ -165,12 +165,6 @@ static int erofs_map_blocks_flatmode(struct inode *inode,
|
|||
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)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue