soc: fsl: qe: fix sparse warning for qe_common.c
authorLi Yang <leoyang.li@nxp.com>
Thu, 12 Mar 2020 20:41:43 +0000 (15:41 -0500)
committerLi Yang <leoyang.li@nxp.com>
Wed, 25 Mar 2020 00:02:22 +0000 (19:02 -0500)
Fixes the following sparse warning:

drivers/soc/fsl/qe/qe_common.c:75:48: warning: incorrect type in argument 2 (different base types)
drivers/soc/fsl/qe/qe_common.c:75:48:    expected restricted __be32 const [usertype] *addr
drivers/soc/fsl/qe/qe_common.c:75:48:    got unsigned int *

Signed-off-by: Li Yang <leoyang.li@nxp.com>
Reviewed-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
drivers/soc/fsl/qe/qe_common.c

index a81a1a79f1cafd4c1a04694340db4bd020586a52..75075591f6308d15d0c250285d601dd02644b677 100644 (file)
@@ -46,7 +46,7 @@ int cpm_muram_init(void)
 {
        struct device_node *np;
        struct resource r;
-       u32 zero[OF_MAX_ADDR_CELLS] = {};
+       __be32 zero[OF_MAX_ADDR_CELLS] = {};
        resource_size_t max = 0;
        int i = 0;
        int ret = 0;