summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include
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 20:04:18 +0200
commitee9e83973d54d94ff776892219b723de54429548 (patch)
tree45425def242ba845d41ca013d58ba8f44814e628 /arch/sparc/include
parentsparc64: Fix old style declaration GCC warnings (diff)
downloadlinux-ee9e83973d54d94ff776892219b723de54429548.tar.xz
linux-ee9e83973d54d94ff776892219b723de54429548.zip
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/sparc/include')
-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]"