summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-10-21 15:39:03 +0200
committerDavid S. Miller <davem@davemloft.net>2016-10-24 11:04:18 -0700
commitee9e83973d54d94ff776892219b723de54429548 (patch)
tree45425def242ba845d41ca013d58ba8f44814e628 /arch
parent844bdf1b2a2f1790eba9e679bda1c632ee744d4e (diff)
downloadlinux-ee9e83973d54d94ff776892219b723de54429548.tar.bz2
sparc32: Fix old style declaration GCC warnings
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/include/asm/spinlock_32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/spinlock_32.h b/arch/sparc/include/asm/spinlock_32.h
index d9c5876c6121..8011e79f59c9 100644
--- a/arch/sparc/include/asm/spinlock_32.h
+++ b/arch/sparc/include/asm/spinlock_32.h
@@ -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]"