diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-04-29 08:16:05 +0200 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-04-29 08:16:05 +0200 |
commit | dc3a1f3024b3222e21176249eea38ccb5d562218 (patch) | |
tree | bf97c52f8b18cd63e597b87ddf927d1f5331723f /mm/z3fold.c | |
parent | fs/proc/task_mmu.c: remove redundant page validation of pte_page (diff) | |
download | linux-dc3a1f3024b3222e21176249eea38ccb5d562218.tar.xz linux-dc3a1f3024b3222e21176249eea38ccb5d562218.zip |
mm/z3fold: declare z3fold_mount with __init
Patch series "A few cleanup patches for z3fold", v2.
This series contains a few patches to simplify the code, remove unneeded
code, fix obsolete comment and so on. More details can be found in the
respective changelogs.
This patch (of 8):
z3fold_mount is only called during init. So we should declare it with
__init.
Link: https://lkml.kernel.org/r/20220308134311.59086-1-linmiaohe@huawei.com
Link: https://lkml.kernel.org/r/20220308134311.59086-2-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/z3fold.c')
-rw-r--r-- | mm/z3fold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/z3fold.c b/mm/z3fold.c index b3c0577b8095..e86aafea6599 100644 --- a/mm/z3fold.c +++ b/mm/z3fold.c @@ -345,7 +345,7 @@ static struct file_system_type z3fold_fs = { }; static struct vfsmount *z3fold_mnt; -static int z3fold_mount(void) +static int __init z3fold_mount(void) { int ret = 0; |