Skip to content

Commit 41ed69b

Browse files
author
Li Yang
committed
soc: fsl: qe: fix sparse warning for qe_common.c
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>
1 parent 2880143 commit 41ed69b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/soc/fsl/qe/qe_common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int cpm_muram_init(void)
4646
{
4747
struct device_node *np;
4848
struct resource r;
49-
u32 zero[OF_MAX_ADDR_CELLS] = {};
49+
__be32 zero[OF_MAX_ADDR_CELLS] = {};
5050
resource_size_t max = 0;
5151
int i = 0;
5252
int ret = 0;

0 commit comments

Comments
 (0)