diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-06-21 15:24:17 -0600 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-06-23 21:39:31 +0000 |
commit | beeb8bc925bef6973e1c9fa6c4fd26a4113a1777 (patch) | |
tree | 30c63cf4ae4bb14a19849b1680622ad6eed86d63 /flashrom.c | |
parent | cb44eb7dad17522f47792dca4fc499310ff7d6f3 (diff) | |
download | flashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.tar.gz flashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.tar.bz2 flashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.zip |
tree: Make internal functions static
None of these functions are used outside of the files they are defined
in, so make them all static.
Change-Id: Ie9cbe12d289bcedacf2f1bf483ae64ef8039ccc1
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/33667
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/flashrom.c b/flashrom.c index b47d0a2ce..5b85c1433 100644 --- a/flashrom.c +++ b/flashrom.c @@ -738,8 +738,7 @@ static int compare_range(const uint8_t *wantbuf, const uint8_t *havebuf, unsigne } /* start is an offset to the base address of the flash chip */ -int check_erased_range(struct flashctx *flash, unsigned int start, - unsigned int len) +static int check_erased_range(struct flashctx *flash, unsigned int start, unsigned int len) { int ret; uint8_t *cmpbuf = malloc(len); @@ -2055,7 +2054,7 @@ void list_programmers_linebreak(int startcol, int cols, int paren) } } -void print_sysinfo(void) +static void print_sysinfo(void) { #if IS_WINDOWS SYSTEM_INFO si; @@ -2235,8 +2234,8 @@ int selfcheck(void) /* FIXME: This function signature needs to be improved once doit() has a better * function signature. */ -int chip_safety_check(const struct flashctx *flash, int force, int read_it, int write_it, int erase_it, - int verify_it) +static int chip_safety_check(const struct flashctx *flash, int force, + int read_it, int write_it, int erase_it, int verify_it) { const struct flashchip *chip = flash->chip; |