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:
@@ -572,7 +572,7 @@ static const struct command_registration arm7a_l1_i_cache_commands[] = {
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
const struct command_registration arm7a_l1_di_cache_group_handlers[] = {
|
||||
static const struct command_registration arm7a_l1_di_cache_group_handlers[] = {
|
||||
{
|
||||
.name = "info",
|
||||
.handler = arm7a_l1_cache_info_cmd,
|
||||
@@ -597,7 +597,7 @@ const struct command_registration arm7a_l1_di_cache_group_handlers[] = {
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
const struct command_registration arm7a_cache_group_handlers[] = {
|
||||
static const struct command_registration arm7a_cache_group_handlers[] = {
|
||||
{
|
||||
.name = "auto",
|
||||
.handler = arm7a_cache_disable_auto_cmd,
|
||||
|
||||
Reference in New Issue
Block a user