diff mbox series

mtd: ubi: Rmove unused declaration in header file

Message ID 20240907080025.44001-1-zhangzekun11@huawei.com
State New
Headers show
Series mtd: ubi: Rmove unused declaration in header file | expand

Commit Message

Zhang Zekun Sept. 7, 2024, 8 a.m. UTC
The definition of ubi_destroy_ai() has been removed since
commit dac6e2087a41 ("UBI: Add fastmap stuff to attach.c").
Remove the empty declaration in header file.

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
---
 drivers/mtd/ubi/ubi.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Zhihao Cheng Sept. 7, 2024, 8:34 a.m. UTC | #1
在 2024/9/7 16:00, Zhang Zekun 写道:
> The definition of ubi_destroy_ai() has been removed since
> commit dac6e2087a41 ("UBI: Add fastmap stuff to attach.c").
> Remove the empty declaration in header file.
> 
> Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
> ---
>   drivers/mtd/ubi/ubi.h | 1 -
>   1 file changed, 1 deletion(-)
> 

Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
> diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
> index 1c9e874e8ede..c792b9bcab9b 100644
> --- a/drivers/mtd/ubi/ubi.h
> +++ b/drivers/mtd/ubi/ubi.h
> @@ -831,7 +831,6 @@ void ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av);
>   struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi,
>   				       struct ubi_attach_info *ai);
>   int ubi_attach(struct ubi_device *ubi, int force_scan);
> -void ubi_destroy_ai(struct ubi_attach_info *ai);
>   
>   /* vtbl.c */
>   int ubi_change_vtbl_record(struct ubi_device *ubi, int idx,
>
diff mbox series

Patch

diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 1c9e874e8ede..c792b9bcab9b 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -831,7 +831,6 @@  void ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av);
 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi,
 				       struct ubi_attach_info *ai);
 int ubi_attach(struct ubi_device *ubi, int force_scan);
-void ubi_destroy_ai(struct ubi_attach_info *ai);
 
 /* vtbl.c */
 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx,