[PATCH] ubi: Fix ubi_init() ubiblock_exit() section mismatch
Zhihao Cheng
chengzhihao1 at huawei.com
Sat Jul 13 01:16:15 PDT 2024
在 2024/7/13 15:35, Richard Weinberger 写道:
> Since ubiblock_exit() is now called from an init function,
> the __exit section no longer makes sense.
>
> Cc: Ben Hutchings <bwh at kernel.org>
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202407131403.wZJpd8n2-lkp@intel.com/
> Signed-off-by: Richard Weinberger <richard at nod.at>
> ---
> drivers/mtd/ubi/block.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Looks like that you prefer a simpler fix. Feel fine to add
Reviewed-by: Zhihao Cheng <chengzhihao1 at huawei.com>
>
> diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c
> index bf7308e8ec2fe..60d0155be869f 100644
> --- a/drivers/mtd/ubi/block.c
> +++ b/drivers/mtd/ubi/block.c
> @@ -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();
>
More information about the linux-mtd
mailing list