Skip to content

Commit

Permalink
erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init
Browse files Browse the repository at this point in the history
They are used during the erofs module init phase. Let's mark it as
__init like any other function.

Signed-off-by: Yangtao Li <[email protected]>
Reviewed-by: Yue Hu <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
  • Loading branch information
bbkzz authored and hsiangkao committed Mar 9, 2023
1 parent fe15c26 commit a279ade
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fs/erofs/decompressor_lzma.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void z_erofs_lzma_exit(void)
}
}

int z_erofs_lzma_init(void)
int __init z_erofs_lzma_init(void)
{
unsigned int i;

Expand Down
4 changes: 2 additions & 2 deletions fs/erofs/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ static inline void *erofs_vm_map_ram(struct page **pages, unsigned int count)
void *erofs_get_pcpubuf(unsigned int requiredpages);
void erofs_put_pcpubuf(void *ptr);
int erofs_pcpubuf_growsize(unsigned int nrpages);
void erofs_pcpubuf_init(void);
void __init erofs_pcpubuf_init(void);
void erofs_pcpubuf_exit(void);

int erofs_register_sysfs(struct super_block *sb);
Expand Down Expand Up @@ -545,7 +545,7 @@ static inline int z_erofs_fill_inode(struct inode *inode) { return -EOPNOTSUPP;
#endif /* !CONFIG_EROFS_FS_ZIP */

#ifdef CONFIG_EROFS_FS_ZIP_LZMA
int z_erofs_lzma_init(void);
int __init z_erofs_lzma_init(void);
void z_erofs_lzma_exit(void);
int z_erofs_load_lzma_config(struct super_block *sb,
struct erofs_super_block *dsb,
Expand Down
2 changes: 1 addition & 1 deletion fs/erofs/pcpubuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int erofs_pcpubuf_growsize(unsigned int nrpages)
return ret;
}

void erofs_pcpubuf_init(void)
void __init erofs_pcpubuf_init(void)
{
int cpu;

Expand Down

0 comments on commit a279ade

Please sign in to comment.