Skip to content

Commit

Permalink
ubi: Fix ubi_init() ubiblock_exit() section mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Weinberger committed Jul 28, 2024
1 parent 054fd15 commit 92a286e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/ubi/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ int __init ubiblock_init(void)
return ret;
}

void __exit ubiblock_exit(void)
void ubiblock_exit(void)
{
ubi_unregister_volume_notifier(&ubiblock_notifier);
ubiblock_remove_all();
Expand Down

0 comments on commit 92a286e

Please sign in to comment.