Skip to contentSkip to conversation

sparc32: Fix old style declaration GCC warnings

PATCH Applied Tobias Klauser 2 participants 2 messages Oct 21, 2016 – Oct 24, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc32: Fix old style declaration GCC warnings

Fix [-Wold-style-declaration] GCC warnings by moving the inline keyword before the return type.

---
 arch/sparc/include/asm/spinlock_32.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/include/asm/spinlock_32.h +1 -1
index d9c5876c6121..8011e79f59c9 100644
@@ -134,7 +134,7 @@ static inline void arch_write_lock(arch_rwlock_t *rw)
 	*(volatile __u32 *)&lp->lock = ~0U;
 }
 
-static void inline arch_write_unlock(arch_rwlock_t *lock)
+static inline void arch_write_unlock(arch_rwlock_t *lock)
 {
 	__asm__ __volatile__(
 "	st		%%g0, [%0]"
Signature · 1 line
2.9.0