From: Tobias Klauser Date: Thu, 17 Nov 2016 16:20:24 +0000 (+0100) Subject: powerpc: Fix old style declaration GCC warnings X-Git-Tag: v4.14-rc1~1846^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60d862e531f310a32e272528ad4e041970543d02;p=platform%2Fkernel%2Flinux-rpi.git 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: Tobias Klauser Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 88ac964..05d2556 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c @@ -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)); }