
This array is private to the IPU driver, so it should be declared there.
Signed-off-by: Samuel Holland samuel@sholland.org ---
drivers/remoteproc/ipu_rproc.c | 4 +++- include/remoteproc.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/remoteproc/ipu_rproc.c b/drivers/remoteproc/ipu_rproc.c index b4a06bc955a..2783628b23a 100644 --- a/drivers/remoteproc/ipu_rproc.c +++ b/drivers/remoteproc/ipu_rproc.c @@ -145,6 +145,8 @@ unsigned long mem_count; unsigned int pgtable_l2_map[MAX_NUM_L2_PAGE_TABLES]; unsigned int pgtable_l2_cnt;
+static struct rproc *rproc_cfg_arr[2]; + void *ipu_alloc_mem(struct udevice *dev, unsigned long len, unsigned long align) { unsigned long mask; @@ -597,7 +599,7 @@ struct rproc ipu2_config = { .intmem_to_l3_mapping = &ipu2_intmem_to_l3_mapping };
-struct rproc *rproc_cfg_arr[2] = { +static struct rproc *rproc_cfg_arr[2] = { [IPU2] = &ipu2_config, [IPU1] = &ipu1_config, }; diff --git a/include/remoteproc.h b/include/remoteproc.h index f48054de6ba..d8cde73748b 100644 --- a/include/remoteproc.h +++ b/include/remoteproc.h @@ -383,7 +383,6 @@ struct rproc { u32 trace_len; };
-extern struct rproc *rproc_cfg_arr[2]; /** * enum rproc_mem_type - What type of memory model does the rproc use * @RPROC_INTERNAL_MEMORY_MAPPED: Remote processor uses own memory and is memory