aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2023-10-06 13:39:16 +0200
committerMikael Olsson <mikael.olsson@arm.com>2023-10-06 13:45:24 +0200
commitf1b23f3b117ea5cb9af2aca99ee374b55e9a4a88 (patch)
treed26c915457e6f82143fe87691a53d6dc27f208b3
parent53d224abf0b034d91faf5b0c410cada40c65234b (diff)
downloadethos-u-linux-driver-stack-f1b23f3b117ea5cb9af2aca99ee374b55e9a4a88.tar.gz
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 <mikael.olsson@arm.com>
-rw-r--r--remoteproc/ethosu_remoteproc.c2
1 files changed, 1 insertions, 1 deletions
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;