Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));
}