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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user