]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mm/secretmem: add __init annotation to secretmem_init()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Thu, 15 Sep 2022 01:16:02 +0000 (09:16 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:27 +0000 (14:03 -0700)
It's a fs_initcall entry, add __init annotation to it.

Link: https://lkml.kernel.org/r/20220915011602.176967-1-xiujianfeng@huawei.com
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/secretmem.c

index 3f715409979588ee58374cb14a464d4b6c26280e..6a44efb673b2cdb02528f6c00ff1ccfe7c625642 100644 (file)
@@ -276,7 +276,7 @@ static struct file_system_type secretmem_fs = {
        .kill_sb        = kill_anon_super,
 };
 
-static int secretmem_init(void)
+static int __init secretmem_init(void)
 {
        int ret = 0;