summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2019-07-15 18:15:31 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2020-02-12 11:06:00 +0100
commit76b83ffb070d81adcfbb0f36f4f4bf51cd3e51c0 (patch)
tree0b6b86740ee56dec367a2fe7a549c8dfcaa4e1df /arch/arm
parent61357861f0da1ba55deb14f23998a3641b549d20 (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>
Diffstat (limited to 'arch/arm')
-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