aboutsummaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-05-16 11:10:36 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2022-05-17 02:20:34 +0000
commit9d869c447d660ef99b9db6c94322f7df41eb8e6f (patch)
treee2afdae7e97c17e7d9b0e73601f69e92d78074a8 /flashrom.c
parent086f0c8e4f32ade9c80f2a8b2889ce870467c398 (diff)
downloadflashrom-9d869c447d660ef99b9db6c94322f7df41eb8e6f.tar.gz
flashrom-9d869c447d660ef99b9db6c94322f7df41eb8e6f.tar.bz2
flashrom-9d869c447d660ef99b9db6c94322f7df41eb8e6f.zip
flashrom.c: Make need_erase() helper static local
The need_erase() helper is only used within flashrom.c Change-Id: Ic0946bb109fca2fc18e15eefa11cccea284ded0b Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/64369 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index e8ed87ee..7f544885 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -480,7 +480,7 @@ static int need_erase_gran_bytes(const uint8_t *have, const uint8_t *want, unsig
* @gran write granularity (enum, not count)
* @return 0 if no erase is needed, 1 otherwise
*/
-int need_erase(const uint8_t *have, const uint8_t *want, unsigned int len,
+static int need_erase(const uint8_t *have, const uint8_t *want, unsigned int len,
enum write_granularity gran, const uint8_t erased_value)
{
int result = 0;