diff options
author | Nir Ekhauz <nir.ekhauz@arm.com> | 2021-11-23 10:28:34 +0200 |
---|---|---|
committer | Nir Ekhauz <nir.ekhauz@arm.com> | 2021-11-23 11:25:34 +0200 |
commit | 482392198cc5852cd4757d1f83228fc64378312f (patch) | |
tree | a799bf7e9a73d0031a91a74c37c965d0b9a806ea /remoteproc | |
parent | ed7d6c103c2688680d57509293a4e4401bd02d01 (diff) | |
download | ethos-u-linux-driver-stack-482392198cc5852cd4757d1f83228fc64378312f.tar.gz |
linux_driver_stack: ethosu_remoteproc.c:122:14: error: initialization from incompatible pointer type
Change-Id: I50396299f4d9878bb0b43ea5acd06951e4df698e
Diffstat (limited to 'remoteproc')
-rw-r--r-- | remoteproc/ethosu_remoteproc.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <linux/platform_device.h> #include <linux/remoteproc.h> #include <linux/reset.h> +#include <linux/version.h> #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; |