diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2023-04-08 23:19:50 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2023-05-05 22:06:19 +0000 |
commit | 411dfa2409221259108b7cec99ac7824e53e3867 (patch) | |
tree | 549ce4f24e917e377734404323e39d25bf610d48 /src/jtag/drivers/vdebug.c | |
parent | 682f927f8e4e6c6216c6d0b259b3c24b9f3f6342 (diff) | |
download | riscv-openocd-411dfa2409221259108b7cec99ac7824e53e3867.zip riscv-openocd-411dfa2409221259108b7cec99ac7824e53e3867.tar.gz riscv-openocd-411dfa2409221259108b7cec99ac7824e53e3867.tar.bz2 |
jtag: drivers: add static to local symbols
Add static type to symbols that are not used elsewhere.
Detected through 'sparse' tool.
Change-Id: I00e151d2466868a5dce028444d326defb80d4826
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7591
Tested-by: jenkins
Diffstat (limited to 'src/jtag/drivers/vdebug.c')
-rw-r--r-- | src/jtag/drivers/vdebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/drivers/vdebug.c b/src/jtag/drivers/vdebug.c index 7898e9d..9223be2 100644 --- a/src/jtag/drivers/vdebug.c +++ b/src/jtag/drivers/vdebug.c @@ -344,7 +344,7 @@ static uint32_t vdebug_wait_server(int hsock, struct vd_shm *pmem) return rc; } -int vdebug_run_jtag_queue(int hsock, struct vd_shm *pm, unsigned int count) +static int vdebug_run_jtag_queue(int hsock, struct vd_shm *pm, unsigned int count) { uint8_t num_pre, num_post, tdi, tms; unsigned int num, anum, bytes, hwords, words; @@ -420,7 +420,7 @@ int vdebug_run_jtag_queue(int hsock, struct vd_shm *pm, unsigned int count) return rc; } -int vdebug_run_reg_queue(int hsock, struct vd_shm *pm, unsigned int count) +static int vdebug_run_reg_queue(int hsock, struct vd_shm *pm, unsigned int count) { unsigned int num, awidth, wwidth; unsigned int req, waddr, rwords; |