Skip to content

Commit

Permalink
target: x86_32: make x86_32_common_read_io() static
Browse files Browse the repository at this point in the history
The function is not referenced outside the file.
Make it static.

Change-Id: Ic2552c040b6b46c0334851a4fc0fdaa400e11e4c
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/8548
Tested-by: jenkins
  • Loading branch information
borneoa committed Nov 23, 2024
1 parent f3aeb3d commit c5babec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/target/x86_32_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions src/target/x86_32_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c5babec

Please sign in to comment.