Edward O'Callaghan has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/67362 )
Change subject: flashrom.c: Make programmer_{un}map_flash_region() static local ......................................................................
flashrom.c: Make programmer_{un}map_flash_region() static local
Change-Id: I93def3f0fd787b39bc5940b47eca060eb8d6ccbf Signed-off-by: Edward O'Callaghan quasisec@google.com --- M flashrom.c M include/flash.h 2 files changed, 12 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/62/67362/1
diff --git a/flashrom.c b/flashrom.c index 9cff43a..acc8f52 100644 --- a/flashrom.c +++ b/flashrom.c @@ -189,7 +189,7 @@ return ret; }
-void *programmer_map_flash_region(const char *descr, uintptr_t phys_addr, size_t len) +static void *programmer_map_flash_region(const char *descr, uintptr_t phys_addr, size_t len) { void *ret = programmer->map_flash_region(descr, phys_addr, len); msg_gspew("%s: mapping %s from 0x%0*" PRIxPTR " to 0x%0*" PRIxPTR "\n", @@ -197,7 +197,7 @@ return ret; }
-void programmer_unmap_flash_region(void *virt_addr, size_t len) +static void programmer_unmap_flash_region(void *virt_addr, size_t len) { programmer->unmap_flash_region(virt_addr, len); msg_gspew("%s: unmapped 0x%0*" PRIxPTR "\n", __func__, PRIxPTR_WIDTH, (uintptr_t)virt_addr); diff --git a/include/flash.h b/include/flash.h index ba1fb17..d1656e9 100644 --- a/include/flash.h +++ b/include/flash.h @@ -55,8 +55,6 @@ #define PRIxPTR_WIDTH ((int)(sizeof(uintptr_t)*2))
int register_shutdown(int (*function) (void *data), void *data); -void *programmer_map_flash_region(const char *descr, uintptr_t phys_addr, size_t len); -void programmer_unmap_flash_region(void *virt_addr, size_t len); void programmer_delay(unsigned int usecs);
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))