From d4fe63e36b662ad274783585ff7222befbf54268 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 8 Apr 2023 23:59:42 +0200 Subject: 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 Reviewed-on: https://review.openocd.org/c/openocd/+/7594 Tested-by: jenkins --- src/flash/nor/numicro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/flash/nor/numicro.c') diff --git a/src/flash/nor/numicro.c b/src/flash/nor/numicro.c index 0b04ce4..a0c6e0c 100644 --- a/src/flash/nor/numicro.c +++ b/src/flash/nor/numicro.c @@ -536,8 +536,8 @@ struct numicro_flash_bank { }; /* Private variables */ -uint32_t m_page_size = NUMICRO_PAGESIZE; -uint32_t m_address_bias_offset; +static uint32_t m_page_size = NUMICRO_PAGESIZE; +static uint32_t m_address_bias_offset; /* Private methods */ static int numicro_get_arm_arch(struct target *target) -- cgit v1.1