aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-10-29 00:23:13 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-11-04 17:39:17 +0000
commit5ca23017434d726183c1562a8f12458c87770bfe (patch)
tree850902d6110dc24a7ebd2b392701b4b996a39dd1 /src/target/target.c
parentd3bff4e5c42b6b3af65e31fbf2409fa3d88d1a03 (diff)
downloadriscv-openocd-5ca23017434d726183c1562a8f12458c87770bfe.zip
riscv-openocd-5ca23017434d726183c1562a8f12458c87770bfe.tar.gz
riscv-openocd-5ca23017434d726183c1562a8f12458c87770bfe.tar.bz2
target: declare local symbols as static
Functions and variables that are not used outside the file should be declared as static. Change-Id: I9f97571a528f0cb3c3c26f873577ab16fdec3cdc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5895 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/target/target.c')
-rw-r--r--src/target/target.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/target.c b/src/target/target.c
index e2e614f..da0c943 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -154,8 +154,8 @@ static struct target_type *target_types[] = {
struct target *all_targets;
static struct target_event_callback *target_event_callbacks;
static struct target_timer_callback *target_timer_callbacks;
-LIST_HEAD(target_reset_callback_list);
-LIST_HEAD(target_trace_callback_list);
+static LIST_HEAD(target_reset_callback_list);
+static LIST_HEAD(target_trace_callback_list);
static const int polling_interval = 100;
static const Jim_Nvp nvp_assert[] = {
@@ -1319,7 +1319,7 @@ unsigned target_address_bits(struct target *target)
return 32;
}
-int target_profiling(struct target *target, uint32_t *samples,
+static int target_profiling(struct target *target, uint32_t *samples,
uint32_t max_num_samples, uint32_t *num_samples, uint32_t seconds)
{
return target->type->profiling(target, samples, max_num_samples,