[PATCH] powerpc: Fix old style declaration GCC warnings

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3579d

2 messages, 2 authors, 2016-11-22 · open the first message on its own page

[PATCH] powerpc: Fix old style declaration GCC warnings

From: Tobias Klauser <tklauser@distanz.ch>
Date: 2016-11-17 16:20:27

Fix two [-Wold-style-declaration] GCC warnings by moving the inline
keyword before the return type.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 arch/powerpc/kernel/prom_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index 88ac964f4858..05d2556ebb9f 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));
 }
-- 
2.11.0.rc0.7.gbe5a750

Re: powerpc: Fix old style declaration GCC warnings

From: Michael Ellerman <hidden>
Date: 2016-11-22 00:34:21

On Thu, 2016-11-17 at 16:20:24 UTC, Tobias Klauser wrote:
Fix two [-Wold-style-declaration] GCC warnings by moving the inline
keyword before the return type.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/60d862e531f310a32e272528ad4e04

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help