From 76b83ffb070d81adcfbb0f36f4f4bf51cd3e51c0 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 15 Jul 2019 18:15:31 +0200 Subject: cache-l2x0.c: silence compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- arch/arm/mm/cache-l2x0.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'arch') 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 -- cgit v1.2.3