diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-03-24 02:56:01 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-03-27 16:14:00 +0100 |
commit | 38847ebee06c6dbeeac7d86e374000a0ac0958de (patch) | |
tree | f4a564f1f9476e726a7971de0cccf286fbcfa586 /target | |
parent | 84f47106892c29b7fe17eec8a535623d53316dfa (diff) | |
download | upstream-38847ebee06c6dbeeac7d86e374000a0ac0958de.tar.gz upstream-38847ebee06c6dbeeac7d86e374000a0ac0958de.tar.bz2 upstream-38847ebee06c6dbeeac7d86e374000a0ac0958de.zip |
kernel: generic: fix warning in FIT partition parser
Use 'const char *' where necessary to make gcc get quiet.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit d3a4607fc61f890d5d4bedef6e542046038294d9)
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/files/block/partitions/fit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/block/partitions/fit.c b/target/linux/generic/files/block/partitions/fit.c index f6f15f538a..75516af493 100644 --- a/target/linux/generic/files/block/partitions/fit.c +++ b/target/linux/generic/files/block/partitions/fit.c @@ -89,8 +89,8 @@ int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector, size_t label_min; struct device_node *np = NULL; const char *bootconf; - char *loadable; - char *select_rootfs = NULL; + const char *loadable; + const char *select_rootfs = NULL; bool found; int loadables_rem_len, loadable_len; |