|
From: OpenOCD-Gerrit <ope...@us...> - 2022-09-13 22:10:48
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via 8f725fea2502d538f69487fd21aa979611cea4f6 (commit)
via bf74007d37e9487c719ac74b80462cf23254ebbc (commit)
from 97f47e8c9486377affac7af3c3d260613c6d06f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8f725fea2502d538f69487fd21aa979611cea4f6
Author: Antonio Borneo <bor...@gm...>
Date: Mon Sep 5 23:53:10 2022 +0200
jtag: make local symbols static
Symbols that are not exported should be declared as static.
Change-Id: I6224ae89ebda3230dfee2413e3823be9b8716bba
Signed-off-by: Antonio Borneo <bor...@gm...>
Reviewed-on: https://review.openocd.org/c/openocd/+/7165
Tested-by: jenkins
Reviewed-by: Tomas Vanek <va...@fb...>
diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c
index 76a2aaba6..a0432b692 100644
--- a/src/jtag/adapter.c
+++ b/src/jtag/adapter.c
@@ -844,7 +844,7 @@ static int get_gpio_index(const char *signal_name)
return -1;
}
-COMMAND_HELPER(helper_adapter_gpio_print_config, enum adapter_gpio_config_index gpio_idx)
+static COMMAND_HELPER(helper_adapter_gpio_print_config, enum adapter_gpio_config_index gpio_idx)
{
struct adapter_gpio_config *gpio_config = &adapter_config.gpios[gpio_idx];
const char *active_state = gpio_config->active_low ? "low" : "high";
diff --git a/src/jtag/drivers/linuxgpiod.c b/src/jtag/drivers/linuxgpiod.c
index e8e93a55b..35494cb7a 100644
--- a/src/jtag/drivers/linuxgpiod.c
+++ b/src/jtag/drivers/linuxgpiod.c
@@ -275,7 +275,7 @@ static int linuxgpiod_quit(void)
return ERROR_OK;
}
-int helper_get_line(enum adapter_gpio_config_index idx)
+static int helper_get_line(enum adapter_gpio_config_index idx)
{
if (!is_gpio_config_valid(idx))
return ERROR_OK;
commit bf74007d37e9487c719ac74b80462cf23254ebbc
Author: Antonio Borneo <bor...@gm...>
Date: Tue Sep 6 00:24:39 2022 +0200
log: remove unused set_log_output()
The function set_log_output() has never been used after the drop
of eCos build with commit 39650e2273bc ("ecosboard: delete
bit-rotted eCos code") in 2012.
Drop it!
Change-Id: I070b688061776c7ced5db18f738d78a4a7623726
Signed-off-by: Antonio Borneo <bor...@gm...>
Reviewed-on: https://review.openocd.org/c/openocd/+/7164
Reviewed-by: Tomas Vanek <va...@fb...>
Tested-by: jenkins
diff --git a/src/helper/log.c b/src/helper/log.c
index f3872b541..b49c9af94 100644
--- a/src/helper/log.c
+++ b/src/helper/log.c
@@ -295,12 +295,6 @@ void log_exit(void)
log_output = NULL;
}
-int set_log_output(struct command_context *cmd_ctx, FILE *output)
-{
- log_output = output;
- return ERROR_OK;
-}
-
/* add/remove log callback handler */
int log_add_callback(log_callback_fn fn, void *priv)
{
diff --git a/src/helper/log.h b/src/helper/log.h
index da1e652df..ee71bf03f 100644
--- a/src/helper/log.h
+++ b/src/helper/log.h
@@ -62,7 +62,6 @@ __attribute__ ((format (PRINTF_ATTRIBUTE_FORMAT, 5, 6)));
*/
void log_init(void);
void log_exit(void);
-int set_log_output(struct command_context *cmd_ctx, FILE *output);
int log_register_commands(struct command_context *cmd_ctx);
-----------------------------------------------------------------------
Summary of changes:
src/helper/log.c | 6 ------
src/helper/log.h | 1 -
src/jtag/adapter.c | 2 +-
src/jtag/drivers/linuxgpiod.c | 2 +-
4 files changed, 2 insertions(+), 9 deletions(-)
hooks/post-receive
--
Main OpenOCD repository
|