Skip to content

Commit

Permalink
mips32: inline functions in headers must be static
Browse files Browse the repository at this point in the history
Change-Id: If1d0fc6766cadc2db33408ae5c0968de6b7a1b94
Signed-off-by: Andreas Fritiofson <[email protected]>
Reviewed-on: http://openocd.zylin.com/4178
Tested-by: jenkins
Reviewed-by: Salvador Arroyo <[email protected]>
Reviewed-by: Stian Skjelstad <[email protected]>
  • Loading branch information
nattgris committed Jul 7, 2017
1 parent 0e4fbfb commit 29cfe9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/mips32_pracc.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int mips32_cp0_read(struct mips_ejtag *ejtag_info,
int mips32_cp0_write(struct mips_ejtag *ejtag_info,
uint32_t val, uint32_t cp0_reg, uint32_t cp0_sel);

inline void pracc_swap16_array(struct mips_ejtag *ejtag_info, uint32_t *buf, int count)
static inline void pracc_swap16_array(struct mips_ejtag *ejtag_info, uint32_t *buf, int count)
{
if (ejtag_info->isa && ejtag_info->endianness)
for (int i = 0; i != count; i++)
Expand Down

0 comments on commit 29cfe9c

Please sign in to comment.