diff options
author | Anton Moberg <anton.moberg@arm.com> | 2021-05-21 17:20:21 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-05-21 18:46:29 +0200 |
commit | 9f346ab7c5b0f049e61021497d5d2b9eef144080 (patch) | |
tree | b30eb348c28dd4d444afd8d4793b1aba2def1555 /src/ethosu_driver.c | |
parent | 04961a4adcefbf0ceeb610c1d1fe564079f90de6 (diff) | |
download | ethos-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
Diffstat (limited to 'src/ethosu_driver.c')
-rw-r--r-- | src/ethosu_driver.c | 5 |
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) { |