aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2022-02-08 13:33:22 +0100
committerKristofer Jonsson <kristofer.jonsson@arm.com>2022-02-08 16:35:35 +0100
commit24455eedb9e8939f8a28ca0101a6f2d171e1b2f9 (patch)
tree66c90c21803c8c41a1a72451b053e7d253e9a46e
parent7aeec657f2c1bb8d782bfc79413935a445081cfa (diff)
downloadethos-u-core-driver-24455eedb9e8939f8a28ca0101a6f2d171e1b2f9.tar.gz
Fixing compilation warning22.02-rc322.02-rc222.02-rc122.02
Change-Id: I155d79a87f9a9a0dc26c145415cc7cdd19533639
-rw-r--r--src/ethosu_driver.c2
-rw-r--r--zephyr/module.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c
index 3383ef3..866b94c 100644
--- a/src/ethosu_driver.c
+++ b/src/ethosu_driver.c
@@ -485,7 +485,7 @@ int ethosu_invoke_v3(struct ethosu_driver *drv,
void *user_arg)
{
const struct cop_data_s *data_ptr = custom_data_ptr;
- const struct cop_data_s *data_end = custom_data_ptr + custom_data_size;
+ const struct cop_data_s *data_end = (struct cop_data_s *)((ptrdiff_t)custom_data_ptr + custom_data_size);
int return_code = 0;
// First word in custom_data_ptr should contain "Custom Operator Payload 1"
diff --git a/zephyr/module.yml b/zephyr/module.yml
index 68fa9a5..08831dd 100644
--- a/zephyr/module.yml
+++ b/zephyr/module.yml
@@ -1,4 +1,4 @@
-# Copyright (c) 2021 Arm Limited. All rights reserved.
+# Copyright (c) 2021-2022 Arm Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
name: hal_ethos_u
build: