From d9a9d72e45c12571acb2258d669484eaef235872 Mon Sep 17 00:00:00 2001 From: Weijie Gao Date: Wed, 20 May 2026 16:27:31 +0800 Subject: cmd: ubifs: mark string parameters with const File name and volume name should be const as they will not be modified in these functions. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- include/ubi_uboot.h | 2 +- include/ubifs_uboot.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h index dd22ec7537a..6ebd8a3b613 100644 --- a/include/ubi_uboot.h +++ b/include/ubi_uboot.h @@ -53,7 +53,7 @@ int ubi_volume_write(const char *volume, const void *buf, loff_t offset, int ubi_volume_read(const char *volume, void *buf, loff_t offset, size_t size); extern struct ubi_device *ubi_devices[]; -int cmd_ubifs_mount(char *vol_name); +int cmd_ubifs_mount(const char *vol_name); int cmd_ubifs_umount(void); #if IS_ENABLED(CONFIG_UBI_BLOCK) diff --git a/include/ubifs_uboot.h b/include/ubifs_uboot.h index db8a29e9bbd..0877dd84f99 100644 --- a/include/ubifs_uboot.h +++ b/include/ubifs_uboot.h @@ -18,10 +18,10 @@ struct blk_desc; struct disk_partition; int ubifs_init(void); -int uboot_ubifs_mount(char *vol_name); +int uboot_ubifs_mount(const char *vol_name); void uboot_ubifs_umount(void); int ubifs_is_mounted(void); -int ubifs_load(char *filename, unsigned long addr, u32 size); +int ubifs_load(const char *filename, unsigned long addr, u32 size); int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info); int ubifs_ls(const char *dir_name); -- cgit v1.3.1