kernel: generic: fix warning in FIT partition parser
authorDaniel Golle <daniel@makrotopia.org>
Thu, 24 Mar 2022 02:56:01 +0000 (02:56 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 24 Mar 2022 03:27:12 +0000 (03:27 +0000)
Use 'const char *' where necessary to make gcc get quiet.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/files/block/partitions/fit.c

index f6f15f538a5b31736f2ca28f3214e669f0820eec..75516af493d7770d26289db4a85ec703b539d105 100644 (file)
@@ -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;