Commit 60d862e5 authored by Tobias Klauser's avatar Tobias Klauser Committed by Michael Ellerman

powerpc: Fix old style declaration GCC warnings

Fix two [-Wold-style-declaration] GCC warnings by moving the inline
keyword before the return type.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent c05f69a3
...@@ -461,14 +461,14 @@ static int __init prom_next_node(phandle *nodep) ...@@ -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) void *value, size_t valuelen)
{ {
return call_prom("getprop", 4, 1, node, ADDR(pname), return call_prom("getprop", 4, 1, node, ADDR(pname),
(u32)(unsigned long) value, (u32) valuelen); (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)); return call_prom("getproplen", 2, 1, node, ADDR(pname));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment