xtensa: Add missing statics

This actually fixes the build in C:

/home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c💯1: error: no previous prototype for ‘supply_gregset_reg’ [-Werror=missing-prototypes]
 supply_gregset_reg (struct regcache *regcache,
 ^
/home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c:257:1: error: no previous prototype for ‘xtensa_linux_fetch_inferior_registers’ [-Werror=missing-prototypes]
 xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
 ^
/home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c:272:1: error: no previous prototype for ‘xtensa_linux_store_inferior_registers’ [-Werror=missing-prototypes]
 xtensa_linux_store_inferior_registers (struct target_ops *ops,
 ^
cc1: all warnings being treated as errors

These functions are local to this file, so they should be static.

gdb/ChangeLog:

	* xtensa-linux-nat.c (supply_gregset_reg): Make static.
	(xtensa_linux_fetch_inferior_registers): Likewise.
	(xtensa_linux_store_inferior_registers): Likewise.
This commit is contained in:
Simon Marchi 2015-11-03 13:33:16 -05:00 committed by Simon Marchi
parent 1996e237bb
commit 1c215b97f9
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
* xtensa-linux-nat.c (supply_gregset_reg): Make static.
(xtensa_linux_fetch_inferior_registers): Likewise.
(xtensa_linux_store_inferior_registers): Likewise.
2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
* arm-linux-nat.c (arm_linux_read_description): Add cast. * arm-linux-nat.c (arm_linux_read_description): Add cast.

View File

@ -96,7 +96,7 @@ fill_gregset (const struct regcache *regcache,
} }
} }
void static void
supply_gregset_reg (struct regcache *regcache, supply_gregset_reg (struct regcache *regcache,
const gdb_gregset_t *gregsetp, int regnum) const gdb_gregset_t *gregsetp, int regnum)
{ {
@ -253,7 +253,7 @@ store_xtregs (struct regcache *regcache, int regnum)
perror_with_name (_("Couldn't write extended registers")); perror_with_name (_("Couldn't write extended registers"));
} }
void static void
xtensa_linux_fetch_inferior_registers (struct target_ops *ops, xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regnum) struct regcache *regcache, int regnum)
{ {
@ -268,7 +268,7 @@ xtensa_linux_fetch_inferior_registers (struct target_ops *ops,
fetch_xtregs (regcache, regnum); fetch_xtregs (regcache, regnum);
} }
void static void
xtensa_linux_store_inferior_registers (struct target_ops *ops, xtensa_linux_store_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regnum) struct regcache *regcache, int regnum)
{ {