diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-10-29 00:23:13 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-11-04 17:39:17 +0000 |
commit | 5ca23017434d726183c1562a8f12458c87770bfe (patch) | |
tree | 850902d6110dc24a7ebd2b392701b4b996a39dd1 /src/target/nds32_v3.c | |
parent | d3bff4e5c42b6b3af65e31fbf2409fa3d88d1a03 (diff) | |
download | riscv-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/nds32_v3.c')
-rw-r--r-- | src/target/nds32_v3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/nds32_v3.c b/src/target/nds32_v3.c index e5d146b..f9cd47a 100644 --- a/src/target/nds32_v3.c +++ b/src/target/nds32_v3.c @@ -404,7 +404,7 @@ static int nds32_v3_remove_watchpoint(struct target *target, return ERROR_OK; } -struct nds32_v3_common_callback nds32_v3_common_callback = { +static struct nds32_v3_common_callback nds32_v3_common_callback = { .check_interrupt_stack = nds32_v3_check_interrupt_stack, .restore_interrupt_stack = nds32_v3_restore_interrupt_stack, .activate_hardware_breakpoint = nds32_v3_activate_hardware_breakpoint, |