From f1b23f3b117ea5cb9af2aca99ee374b55e9a4a88 Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Fri, 6 Oct 2023 13:39:16 +0200 Subject: Fix C90 declaration order warning in remoteproc A "declaration-after-statement" warning is generated when building the remoteproc driver because C90 doesn't allow variables to be declared after a statement in a scope. To resolve this, the order of the variables at the start of the problematic scope have been reordered to comply with C90. Change-Id: Id7fec564858168fd71cd10af9c99340691484b89 Signed-off-by: Mikael Olsson --- remoteproc/ethosu_remoteproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remoteproc/ethosu_remoteproc.c b/remoteproc/ethosu_remoteproc.c index 0369156..87de3b0 100644 --- a/remoteproc/ethosu_remoteproc.c +++ b/remoteproc/ethosu_remoteproc.c @@ -270,8 +270,8 @@ static int ethosu_rproc_handle_rsc(struct rproc *rproc, } for (i = 0U; i < num_ranges; ++i) { - map = &dev->dma_range_map[i]; struct fw_rsc_map_range *range = &mapping->range[i]; + map = &dev->dma_range_map[i]; range->da = map->dma_start; range->pa = map->cpu_start; -- cgit v1.2.1