aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Moberg <anton.moberg@arm.com>2021-05-21 17:20:21 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2021-05-21 18:46:29 +0200
commit9f346ab7c5b0f049e61021497d5d2b9eef144080 (patch)
treeb30eb348c28dd4d444afd8d4793b1aba2def1555
parent04961a4adcefbf0ceeb610c1d1fe564079f90de6 (diff)
downloadethos-u-core-driver-9f346ab7c5b0f049e61021497d5d2b9eef144080.tar.gz
Weak mutex_create returns NULL
The weak linked symbol ethosu_mutex_create() should in the default case return NULL. Change-Id: Ia92ba8fb85137dc6d676b4d4ea050c9c14085472
-rw-r--r--src/ethosu_driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ethosu_driver.c b/src/ethosu_driver.c
index 60034e6..5910fa4 100644
--- a/src/ethosu_driver.c
+++ b/src/ethosu_driver.c
@@ -174,7 +174,10 @@ struct ethosu_semaphore_t
static void *ethosu_mutex;
static void *ethosu_semaphore;
-void *__attribute__((weak)) ethosu_mutex_create(void) {}
+void *__attribute__((weak)) ethosu_mutex_create(void)
+{
+ return NULL;
+}
void __attribute__((weak)) ethosu_mutex_lock(void *mutex)
{