Weak mutex_create returns NULL
The weak linked symbol ethosu_mutex_create() should in the default case
return NULL.
Change-Id: Ia92ba8fb85137dc6d676b4d4ea050c9c14085472
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 @@
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)
{