summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2019-07-15 18:15:31 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2019-07-15 20:08:15 +0200
commit9a2bdbce7bdb46071ceb8304b6ec911467b9d7eb (patch)
tree28541c955ddcd7df4d1555cd40fa627a29802592
parentbd0ef3bc5dbb37d1aea605fe2987f3ed042caef7 (diff)
cache-l2x0.c: silence compiler warning
Fix commit '46a30aca7f5c MLK-20052 L2 Cache TEE/Linux shared mutex' when CONFIG_OPTEE is not defined. Compiler warning: | arch/arm/mm/cache-l2x0.c:151:12: warning: ‘l2c_set_mutex’ defined but not used [-Wunused-function] fns.set_mutex and l2c_set_mutex() are guarded by CONFIG_OPTEE. On top of that the function pointer is tested for NULL before calling. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--arch/arm/mm/cache-l2x0.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index 6bd9c658a8c6..27179795f143 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -148,10 +148,6 @@ static DEFINE_RAW_SPINLOCK(l2x0_lock);
#define l2x0_spin_unlock(lock, flags) raw_spin_unlock_irqrestore(lock, flags)
#define l2x0_spin_lock_init(lock)
-static int l2c_set_mutex(void *mutex)
-{
- return -EINVAL;
-}
#endif