diff mbox

sparc32: Fix old style declaration GCC warnings

Message ID 20161021133903.7608-1-tklauser@distanz.ch
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Tobias Klauser Oct. 21, 2016, 1:39 p.m. UTC
Fix [-Wold-style-declaration] GCC warnings by moving the inline keyword
before the return type.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 arch/sparc/include/asm/spinlock_32.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller Oct. 24, 2016, 6:05 p.m. UTC | #1
From: Tobias Klauser <tklauser@distanz.ch>
Date: Fri, 21 Oct 2016 15:39:03 +0200

> Fix [-Wold-style-declaration] GCC warnings by moving the inline keyword
> before the return type.
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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]"