target: don't export local symbols
Symbols that are not used outside the file should not be exported and should be declared as static. Change-Id: Icbe7f7bce287b903edec9dc9db3370722c51fbd5 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7173 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
@@ -44,7 +44,7 @@ static int arm946e_post_debug_entry(struct target *target);
|
||||
static void arm946e_pre_restore_context(struct target *target);
|
||||
static int arm946e_read_cp15(struct target *target, int reg_addr, uint32_t *value);
|
||||
|
||||
int arm946e_init_arch_info(struct target *target,
|
||||
static int arm946e_init_arch_info(struct target *target,
|
||||
struct arm946e_common *arm946e,
|
||||
struct jtag_tap *tap)
|
||||
{
|
||||
@@ -173,7 +173,7 @@ static int arm946e_read_cp15(struct target *target, int reg_addr, uint32_t *valu
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int arm946e_write_cp15(struct target *target, int reg_addr, uint32_t value)
|
||||
static int arm946e_write_cp15(struct target *target, int reg_addr, uint32_t value)
|
||||
{
|
||||
int retval = ERROR_OK;
|
||||
struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
|
||||
@@ -720,7 +720,7 @@ static const struct command_registration arm946e_exec_command_handlers[] = {
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
const struct command_registration arm946e_command_handlers[] = {
|
||||
static const struct command_registration arm946e_command_handlers[] = {
|
||||
{
|
||||
.chain = arm9tdmi_command_handlers,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user