erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init
PATCH 1/1 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 <[email protected]>
--- fs/erofs/decompressor_lzma.c | 2 +- fs/erofs/pcpubuf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
fs/erofs/decompressor_lzma.c +1 -1
@@ -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;
fs/erofs/pcpubuf.c +1 -1
@@ -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;
Signature · 1 line
2.25.1
Quoted 4 lines · Yangtao Li
They are used during the erofs module init phase. Let's mark it as
__initlike any other function.Signed-off-by Yangtao Li <[email protected]>
Reviewed-by Gao Xiang <[email protected]>
Thanks,
Gao Xiang
Quoted 31 lines
--- fs/erofs/decompressor_lzma.c | 2 +- fs/erofs/pcpubuf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)fs/erofs/decompressor_lzma.c +1
-1@@ -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;fs/erofs/pcpubuf.c +1
-1@@ -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;
Yue Hu
reviewerQuoted 27 lines · On Fri, 3 Mar 2023 11:14:18 +0800 Yangtao Li <[email protected]> wrote:
They are used during the erofs module init phase. Let's mark it as
__initlike any other function.Signed-off-by Yangtao Li <[email protected]>--- fs/erofs/decompressor_lzma.c | 2 +- fs/erofs/pcpubuf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)fs/erofs/decompressor_lzma.c +1
-1@@ -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;fs/erofs/pcpubuf.c +0
-0
fs/erofs/pcpubuf.c int erofs_pcpubuf_growsize(unsigned int nrpages) · line 120
Quoted 8 lines
fs/erofs/pcpubuf.c +1
-1@@ -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;
Update them in internal.h as well?
Quoted 33 lines · Yue Hu
Quoted 30 lines · On Fri, 3 Mar 2023 11:14:18 +0800 Yangtao Li <[email protected]> wrote:
They are used during the erofs module init phase. Let's mark it as
__initlike any other function.Signed-off-by Yangtao Li <[email protected]>--- fs/erofs/decompressor_lzma.c | 2 +- fs/erofs/pcpubuf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)fs/erofs/decompressor_lzma.c +1
-1@@ -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;fs/erofs/pcpubuf.c +0
-0@@ -114,7 +114,7 @@ int erofs_pcpubuf_growsize(unsigned int nrpages)return ret; }
Quoted 7 lines
fs/erofs/pcpubuf.c int erofs_pcpubuf_growsize(unsigned int nrpages) · line 120
Quoted 5 lines
fs/erofs/pcpubuf.c +1
-1-void erofs_pcpubuf_init (void ) +void __init erofs_pcpubuf_init (void ) {int cpu;Update them in
internal.has well?
Yeah, please help revise, thanks!
Thanks,
Gao Xiang