From 482392198cc5852cd4757d1f83228fc64378312f Mon Sep 17 00:00:00 2001 From: Nir Ekhauz Date: Tue, 23 Nov 2021 10:28:34 +0200 Subject: linux_driver_stack: ethosu_remoteproc.c:122:14: error: initialization from incompatible pointer type Change-Id: I50396299f4d9878bb0b43ea5acd06951e4df698e --- remoteproc/ethosu_remoteproc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/remoteproc/ethosu_remoteproc.c b/remoteproc/ethosu_remoteproc.c index ad476af..493a618 100644 --- a/remoteproc/ethosu_remoteproc.c +++ b/remoteproc/ethosu_remoteproc.c @@ -28,6 +28,7 @@ #include #include #include +#include #define ETHOSU_RPROC_DRIVER_VERSION "0.0.1" @@ -92,9 +93,16 @@ static void ethosu_rproc_kick(struct rproc *rproc, return; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0) static void *ethosu_da_to_va(struct rproc *rproc, u64 da, int len) +#else +static void *ethosu_da_to_va(struct rproc *rproc, + u64 da, + size_t len, + bool *is_iomem) +#endif { struct ethosu_rproc *ethosu = (struct ethosu_rproc *)rproc->priv; int offset; -- cgit v1.2.1