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>
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 @@
}
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;