This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7594

-- gerrit

commit c3528c3ba0416bc5cd5b6be828df418428d73ad8
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Sat Apr 8 23:59:42 2023 +0200

    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.anto...@gmail.com>

diff --git a/src/flash/nor/numicro.c b/src/flash/nor/numicro.c
index 0b04ce4b79..a0c6e0c815 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)
diff --git a/src/flash/nor/rsl10.c b/src/flash/nor/rsl10.c
index d92c4b8b1f..5f0ac9b8f6 100644
--- a/src/flash/nor/rsl10.c
+++ b/src/flash/nor/rsl10.c
@@ -107,7 +107,7 @@ static const char *const rsl10_error_list[] = {
        [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])
                return "unknown";

-- 

Reply via email to