diff options
| author | Weijie Gao <[email protected]> | 2026-05-20 16:27:31 +0800 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2026-07-08 11:30:14 +0200 |
| commit | d9a9d72e45c12571acb2258d669484eaef235872 (patch) | |
| tree | 1b688a6142e44725c5318783cbd576e86707ba72 /include | |
| parent | b63af5e2c20cc9d2d510c5ff38d48114582d410d (diff) | |
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 <[email protected]>
Signed-off-by: Weijie Gao <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/ubi_uboot.h | 2 | ||||
| -rw-r--r-- | include/ubifs_uboot.h | 4 |
2 files changed, 3 insertions, 3 deletions
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); |
