Jacob Garber has uploaded this change for review.

View Change

flashrom: Make internal functions static

These functions are only used in this file, so they can be made static.

Change-Id: I7b63464bb8b5a25fc004350a188dab6ee5c1a204
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
---
M flashrom.c
1 file changed, 3 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/66/33666/1
diff --git a/flashrom.c b/flashrom.c
index b47d0a2..ea3d002 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -738,7 +738,7 @@
}

/* start is an offset to the base address of the flash chip */
-int check_erased_range(struct flashctx *flash, unsigned int start,
+static int check_erased_range(struct flashctx *flash, unsigned int start,
unsigned int len)
{
int ret;
@@ -2055,7 +2055,7 @@
}
}

-void print_sysinfo(void)
+static void print_sysinfo(void)
{
#if IS_WINDOWS
SYSTEM_INFO si;
@@ -2235,7 +2235,7 @@
/* 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,
+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;

To view, visit change 33666. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I7b63464bb8b5a25fc004350a188dab6ee5c1a204
Gerrit-Change-Number: 33666
Gerrit-PatchSet: 1
Gerrit-Owner: Jacob Garber <jgarber1@ualberta.ca>
Gerrit-MessageType: newchange