]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sparc32: Fix old style declaration GCC warnings
authorTobias Klauser <tklauser@distanz.ch>
Fri, 21 Oct 2016 13:39:03 +0000 (15:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2016 18:04:18 +0000 (11:04 -0700)
Fix [-Wold-style-declaration] GCC warnings by moving the inline keyword
before the return type.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/spinlock_32.h

index d9c5876c61215494df0238992da09c03f5d82211..8011e79f59c96f3658e430765e6aa56caa400098 100644 (file)
@@ -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]"