Skip to content

Commit

Permalink
powerpc: Fix old style declaration GCC warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and Michael Ellerman committed Nov 18, 2016
1 parent c05f69a commit 60d862e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 60d862e

Please sign in to comment.