From c5babec7949d3fc23fd3fe43d5452897b7c94553 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 9 Nov 2024 19:08:25 +0100 Subject: [PATCH] target: x86_32: make x86_32_common_read_io() static The function is not referenced outside the file. Make it static. Change-Id: Ic2552c040b6b46c0334851a4fc0fdaa400e11e4c Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/8548 Tested-by: jenkins --- src/target/x86_32_common.c | 2 +- src/target/x86_32_common.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/target/x86_32_common.c b/src/target/x86_32_common.c index 2c60b9f7e..8cca9a5e9 100644 --- a/src/target/x86_32_common.c +++ b/src/target/x86_32_common.c @@ -677,7 +677,7 @@ int x86_32_common_write_memory(struct target *t, target_addr_t addr, return retval; } -int x86_32_common_read_io(struct target *t, uint32_t addr, +static int x86_32_common_read_io(struct target *t, uint32_t addr, uint32_t size, uint8_t *buf) { struct x86_32_common *x86_32 = target_to_x86_32(t); diff --git a/src/target/x86_32_common.h b/src/target/x86_32_common.h index 7392447a6..e23274769 100644 --- a/src/target/x86_32_common.h +++ b/src/target/x86_32_common.h @@ -309,8 +309,6 @@ int x86_32_common_read_memory(struct target *t, target_addr_t addr, uint32_t size, uint32_t count, uint8_t *buf); int x86_32_common_write_memory(struct target *t, target_addr_t addr, uint32_t size, uint32_t count, const uint8_t *buf); -int x86_32_common_read_io(struct target *t, uint32_t addr, - uint32_t size, uint8_t *buf); int x86_32_common_write_io(struct target *t, uint32_t addr, uint32_t size, const uint8_t *buf); int x86_32_common_add_breakpoint(struct target *t, struct breakpoint *bp);