Commit 2e1d6637 authored by Gao Xiang's avatar Gao Xiang Committed by Greg Kroah-Hartman

staging: erofs: drop the extern prefix for function definitions

Fix all `CHECK: extern prototypes should be avoided in .h files'
reported by checkpatch.pl.
Signed-off-by: default avatarGao Xiang <gaoxiang25@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d55bc7ba
...@@ -252,23 +252,20 @@ static inline int erofs_wait_on_workgroup_freezed(struct erofs_workgroup *grp) ...@@ -252,23 +252,20 @@ static inline int erofs_wait_on_workgroup_freezed(struct erofs_workgroup *grp)
} }
#endif #endif
extern int erofs_workgroup_put(struct erofs_workgroup *grp); int erofs_workgroup_put(struct erofs_workgroup *grp);
extern struct erofs_workgroup *erofs_find_workgroup( struct erofs_workgroup *erofs_find_workgroup(struct super_block *sb,
struct super_block *sb, pgoff_t index, bool *tag); pgoff_t index, bool *tag);
int erofs_register_workgroup(struct super_block *sb,
extern int erofs_register_workgroup(struct super_block *sb, struct erofs_workgroup *grp, bool tag);
struct erofs_workgroup *grp, bool tag); unsigned long erofs_shrink_workstation(struct erofs_sb_info *sbi,
unsigned long nr_shrink, bool cleanup);
extern unsigned long erofs_shrink_workstation(struct erofs_sb_info *sbi, void erofs_workgroup_free_rcu(struct erofs_workgroup *grp);
unsigned long nr_shrink, bool cleanup);
extern void erofs_workgroup_free_rcu(struct erofs_workgroup *grp);
#ifdef EROFS_FS_HAS_MANAGED_CACHE #ifdef EROFS_FS_HAS_MANAGED_CACHE
extern int erofs_try_to_free_all_cached_pages(struct erofs_sb_info *sbi, int erofs_try_to_free_all_cached_pages(struct erofs_sb_info *sbi,
struct erofs_workgroup *egrp); struct erofs_workgroup *egrp);
extern int erofs_try_to_free_cached_page(struct address_space *mapping, int erofs_try_to_free_cached_page(struct address_space *mapping,
struct page *page); struct page *page);
#define MNGD_MAPPING(sbi) ((sbi)->managed_cache->i_mapping) #define MNGD_MAPPING(sbi) ((sbi)->managed_cache->i_mapping)
#else #else
...@@ -495,8 +492,8 @@ static inline void __submit_bio(struct bio *bio, unsigned op, unsigned op_flags) ...@@ -495,8 +492,8 @@ static inline void __submit_bio(struct bio *bio, unsigned op, unsigned op_flags)
#define EROFS_IO_MAX_RETRIES_NOFAIL CONFIG_EROFS_FS_IO_MAX_RETRIES #define EROFS_IO_MAX_RETRIES_NOFAIL CONFIG_EROFS_FS_IO_MAX_RETRIES
#endif #endif
extern struct page *__erofs_get_meta_page(struct super_block *sb, struct page *__erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr,
erofs_blk_t blkaddr, bool prio, bool nofail); bool prio, bool nofail);
static inline struct page *erofs_get_meta_page(struct super_block *sb, static inline struct page *erofs_get_meta_page(struct super_block *sb,
erofs_blk_t blkaddr, bool prio) erofs_blk_t blkaddr, bool prio)
...@@ -510,7 +507,7 @@ static inline struct page *erofs_get_meta_page_nofail(struct super_block *sb, ...@@ -510,7 +507,7 @@ static inline struct page *erofs_get_meta_page_nofail(struct super_block *sb,
return __erofs_get_meta_page(sb, blkaddr, prio, true); return __erofs_get_meta_page(sb, blkaddr, prio, true);
} }
extern int erofs_map_blocks(struct inode *, struct erofs_map_blocks *, int); int erofs_map_blocks(struct inode *, struct erofs_map_blocks *, int);
static inline struct page * static inline struct page *
erofs_get_inline_page(struct inode *inode, erofs_get_inline_page(struct inode *inode,
...@@ -530,9 +527,6 @@ static inline unsigned long erofs_inode_hash(erofs_nid_t nid) ...@@ -530,9 +527,6 @@ static inline unsigned long erofs_inode_hash(erofs_nid_t nid)
#endif #endif
} }
extern struct inode *erofs_iget(struct super_block *sb,
erofs_nid_t nid, bool dir);
extern const struct inode_operations erofs_generic_iops; extern const struct inode_operations erofs_generic_iops;
extern const struct inode_operations erofs_symlink_iops; extern const struct inode_operations erofs_symlink_iops;
extern const struct inode_operations erofs_fast_symlink_iops; extern const struct inode_operations erofs_fast_symlink_iops;
...@@ -547,6 +541,8 @@ static inline bool is_inode_fast_symlink(struct inode *inode) ...@@ -547,6 +541,8 @@ static inline bool is_inode_fast_symlink(struct inode *inode)
return inode->i_op == &erofs_fast_symlink_iops; return inode->i_op == &erofs_fast_symlink_iops;
} }
struct inode *erofs_iget(struct super_block *sb, erofs_nid_t nid, bool dir);
/* namei.c */ /* namei.c */
extern const struct inode_operations erofs_dir_iops; extern const struct inode_operations erofs_dir_iops;
...@@ -584,13 +580,12 @@ static inline void erofs_vunmap(const void *mem, unsigned int count) ...@@ -584,13 +580,12 @@ static inline void erofs_vunmap(const void *mem, unsigned int count)
} }
/* utils.c */ /* utils.c */
extern struct page *erofs_allocpage(struct list_head *pool, gfp_t gfp);
extern void erofs_register_super(struct super_block *sb);
extern void erofs_unregister_super(struct super_block *sb);
extern struct shrinker erofs_shrinker_info; extern struct shrinker erofs_shrinker_info;
struct page *erofs_allocpage(struct list_head *pool, gfp_t gfp);
void erofs_register_super(struct super_block *sb);
void erofs_unregister_super(struct super_block *sb);
#ifndef lru_to_page #ifndef lru_to_page
#define lru_to_page(head) (list_entry((head)->prev, struct page, lru)) #define lru_to_page(head) (list_entry((head)->prev, struct page, lru))
#endif #endif
......
...@@ -212,18 +212,18 @@ static inline void z_erofs_onlinepage_endio(struct page *page) ...@@ -212,18 +212,18 @@ static inline void z_erofs_onlinepage_endio(struct page *page)
#define Z_EROFS_VLE_VMAP_GLOBAL_PAGES 2048 #define Z_EROFS_VLE_VMAP_GLOBAL_PAGES 2048
/* unzip_vle_lz4.c */ /* unzip_vle_lz4.c */
extern int z_erofs_vle_plain_copy(struct page **compressed_pages, int z_erofs_vle_plain_copy(struct page **compressed_pages,
unsigned clusterpages, struct page **pages, unsigned int clusterpages, struct page **pages,
unsigned nr_pages, unsigned short pageofs); unsigned int nr_pages, unsigned short pageofs);
int z_erofs_vle_unzip_fast_percpu(struct page **compressed_pages,
extern int z_erofs_vle_unzip_fast_percpu(struct page **compressed_pages, unsigned int clusterpages,
unsigned clusterpages, struct page **pages, struct page **pages, unsigned int outlen,
unsigned outlen, unsigned short pageofs, unsigned short pageofs,
void (*endio)(struct page *)); void (*endio)(struct page *));
int z_erofs_vle_unzip_vmap(struct page **compressed_pages,
extern int z_erofs_vle_unzip_vmap(struct page **compressed_pages, unsigned int clusterpages,
unsigned clusterpages, void *vaddr, unsigned llen, void *vaddr, unsigned int llen,
unsigned short pageofs, bool overlapped); unsigned short pageofs, bool overlapped);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment