Skip to content

Commit a279ade

Browse files
bbkzzhsiangkao
authored andcommitted
erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init
They are used during the erofs module init phase. Let's mark it as __init like any other function. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Yue Hu <huyue2@coolpad.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Reviewed-by: Chao Yu <chao@kernel.org> Link: https://lore.kernel.org/r/20230303063731.66760-1-frank.li@vivo.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
1 parent fe15c26 commit a279ade

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

fs/erofs/decompressor_lzma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void z_erofs_lzma_exit(void)
4747
}
4848
}
4949

50-
int z_erofs_lzma_init(void)
50+
int __init z_erofs_lzma_init(void)
5151
{
5252
unsigned int i;
5353

fs/erofs/internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ static inline void *erofs_vm_map_ram(struct page **pages, unsigned int count)
486486
void *erofs_get_pcpubuf(unsigned int requiredpages);
487487
void erofs_put_pcpubuf(void *ptr);
488488
int erofs_pcpubuf_growsize(unsigned int nrpages);
489-
void erofs_pcpubuf_init(void);
489+
void __init erofs_pcpubuf_init(void);
490490
void erofs_pcpubuf_exit(void);
491491

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

547547
#ifdef CONFIG_EROFS_FS_ZIP_LZMA
548-
int z_erofs_lzma_init(void);
548+
int __init z_erofs_lzma_init(void);
549549
void z_erofs_lzma_exit(void);
550550
int z_erofs_load_lzma_config(struct super_block *sb,
551551
struct erofs_super_block *dsb,

fs/erofs/pcpubuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int erofs_pcpubuf_growsize(unsigned int nrpages)
114114
return ret;
115115
}
116116

117-
void erofs_pcpubuf_init(void)
117+
void __init erofs_pcpubuf_init(void)
118118
{
119119
int cpu;
120120

0 commit comments

Comments
 (0)