]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc: Fix old style declaration GCC warnings
authorTobias Klauser <tklauser@distanz.ch>
Thu, 17 Nov 2016 16:20:24 +0000 (17:20 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Nov 2016 11:40:38 +0000 (22:40 +1100)
Fix two [-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: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init.c

index 88ac964f48586bb90f5b1daf19e9e192237dec6a..05d2556ebb9f6f721d0b5925ee81dc5819e0e536 100644 (file)
@@ -461,14 +461,14 @@ static int __init prom_next_node(phandle *nodep)
        }
 }
 
-static int inline prom_getprop(phandle node, const char *pname,
+static inline int prom_getprop(phandle node, const char *pname,
                               void *value, size_t valuelen)
 {
        return call_prom("getprop", 4, 1, node, ADDR(pname),
                         (u32)(unsigned long) value, (u32) valuelen);
 }
 
-static int inline prom_getproplen(phandle node, const char *pname)
+static inline int prom_getproplen(phandle node, const char *pname)
 {
        return call_prom("getproplen", 2, 1, node, ADDR(pname));
 }