diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-10-28 23:27:02 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-11-04 17:39:05 +0000 |
commit | 21bc36c4d7c813983f7ccf3ae958d96198867136 (patch) | |
tree | 0234c2cca7b688c20f4bf5f12321593a5952afe5 /src/flash/nor/tcl.c | |
parent | 5bb0f6befb3c3f06903cee93f14bdd917abf21e7 (diff) | |
download | riscv-openocd-21bc36c4d7c813983f7ccf3ae958d96198867136.zip riscv-openocd-21bc36c4d7c813983f7ccf3ae958d96198867136.tar.gz riscv-openocd-21bc36c4d7c813983f7ccf3ae958d96198867136.tar.bz2 |
flash: declare local symbols as static
Functions and variables that are not used outside the file should
be declared as static.
Change-Id: I52d46ed6d4c9b98a7152eb23274c836416f409a3
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5893
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/flash/nor/tcl.c')
-rw-r--r-- | src/flash/nor/tcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index e935b3b..386d73e 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -30,7 +30,7 @@ * Implements Tcl commands used to access NOR flash facilities. */ -COMMAND_HELPER(flash_command_get_bank_maybe_probe, unsigned name_index, +static COMMAND_HELPER(flash_command_get_bank_maybe_probe, unsigned name_index, struct flash_bank **bank, bool do_probe) { const char *name = CMD_ARGV[name_index]; |