flash: nor: add static to local symbols
Add static type to symbols that are not used elsewhere. Detected through 'sparse' tool. Change-Id: I2bdac5d2b06a6dbed5c27bfdb1cf36eee90ad823 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7594 Tested-by: jenkins
This commit is contained in:
parent
6e4000df9e
commit
d4fe63e36b
|
@ -536,8 +536,8 @@ struct numicro_flash_bank {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Private variables */
|
/* Private variables */
|
||||||
uint32_t m_page_size = NUMICRO_PAGESIZE;
|
static uint32_t m_page_size = NUMICRO_PAGESIZE;
|
||||||
uint32_t m_address_bias_offset;
|
static uint32_t m_address_bias_offset;
|
||||||
|
|
||||||
/* Private methods */
|
/* Private methods */
|
||||||
static int numicro_get_arm_arch(struct target *target)
|
static int numicro_get_arm_arch(struct target *target)
|
||||||
|
|
|
@ -107,7 +107,7 @@ static const char *const rsl10_error_list[] = {
|
||||||
[RSL10_FLASH_ERR_PROG_FAILED] = "prog failed",
|
[RSL10_FLASH_ERR_PROG_FAILED] = "prog failed",
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *rsl10_error(enum rsl10_flash_status x)
|
static const char *rsl10_error(enum rsl10_flash_status x)
|
||||||
{
|
{
|
||||||
if (x >= RSL10_FLASH_MAX_ERR_CODES || !rsl10_error_list[x])
|
if (x >= RSL10_FLASH_MAX_ERR_CODES || !rsl10_error_list[x])
|
||||||
return "unknown";
|
return "unknown";
|
||||||
|
|
Loading…
Reference in New Issue