hwspinlock/sprd: remove build warnings 85/164285/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 18 Dec 2017 09:22:19 +0000 (18:22 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 18 Dec 2017 09:22:33 +0000 (18:22 +0900)
Remove unused functions build warnings.

Change-Id: I9181643757dc7a562c81a3ea7c204e5c06df8202
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/hwspinlock/sprd_hwspinlock.c
include/soc/sprd/arch_lock.h

index c0ea1f3..0614332 100644 (file)
@@ -243,7 +243,7 @@ static int sprd_check_hwspinlock_vid(struct hwspinlock *lock)
        }
 }
 
-static unsigned long sprd_hwspinlock_addr(unsigned int lock_id)
+static __maybe_unused unsigned long sprd_hwspinlock_addr(unsigned int lock_id)
 {
        unsigned long addr;
        struct hwspinlock *lock;
index b205f6a..b148fdd 100644 (file)
@@ -153,7 +153,7 @@ static void arch_hwlock_fast_unlock(unsigned int lock_id)
        sprd_record_hwlock_sts(lock_id, 0);
 }
 
-static void __arch_default_lock(unsigned int lock_id, unsigned long *flags)
+static inline void __arch_default_lock(unsigned int lock_id, unsigned long *flags)
 {
 #ifdef CONFIG_SC_FPGA
 /* for the hwspinlock not in the bitfile */
@@ -166,7 +166,7 @@ static void __arch_default_lock(unsigned int lock_id, unsigned long *flags)
 #endif
 }
 
-static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags)
+static inline void __arch_default_unlock(unsigned int lock_id, unsigned long *flags)
 {
 #ifdef CONFIG_SC_FPGA
 /* for the hwspinlock not in the bitfile */