powerpc: Make sure that include/asm-powerpc/spinlock.h does not trigger compilation...
authorBart Van Assche <bart.vanassche@gmail.com>
Sat, 28 Jun 2008 06:51:35 +0000 (16:51 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Jul 2008 01:29:00 +0000 (11:29 +1000)
commit89b5810f6ed4b2d42415e5ec656ab6b148cd2bde
treee3116100d5be38f2ebfaa078cd53033d1f612059
parentfcbc5a976b1cafe2e866871c86d239d57503bfd5
powerpc: Make sure that include/asm-powerpc/spinlock.h does not trigger compilation warnings

When compiling kernel modules for ppc that include <linux/spinlock.h>,
gcc prints a warning message every time it encounters a function
declaration where the inline keyword appears after the return type.
This makes sure that the order of the inline keyword and the return
type is as gcc expects it.  Additionally, the __inline__ keyword is
replaced by inline, as checkpatch expects.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/spinlock.h