]> www.infradead.org Git - users/hch/block.git/commitdiff
ubi: Fix ubi_init() ubiblock_exit() section mismatch
authorRichard Weinberger <richard@nod.at>
Sat, 13 Jul 2024 07:35:19 +0000 (09:35 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 28 Jul 2024 18:08:25 +0000 (20:08 +0200)
Since ubiblock_exit() is now called from an init function,
the __exit section no longer makes sense.

Cc: Ben Hutchings <bwh@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407131403.wZJpd8n2-lkp@intel.com/
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
drivers/mtd/ubi/block.c

index bf7308e8ec2fee4b1ee5febfec0096143a5b7463..60d0155be869f4bf2a0e9da5cd37985f76ff713f 100644 (file)
@@ -670,7 +670,7 @@ err_unreg:
        return ret;
 }
 
-void __exit ubiblock_exit(void)
+void ubiblock_exit(void)
 {
        ubi_unregister_volume_notifier(&ubiblock_notifier);
        ubiblock_remove_all();