aboutsummaryrefslogtreecommitdiff
path: root/util/ifdtool
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-06-27 17:33:10 -0600
committerMartin Roth <martinroth@google.com>2019-07-01 14:30:42 +0000
commit595d926bc23e706acc06e69fa3313bea5d461186 (patch)
tree897cfb88410f7e682325d2dd9c5b978b8710f66c /util/ifdtool
parent36cc664bc749a650012e41321e9a1cac3abdbd54 (diff)
util/ifdtool: Make internal functions static
These functions are only used in ifdtool, so they can be made static. Change-Id: Ia48bfecb89a7445dbd0f140acb5ac0592da2ebe7 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33860 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/ifdtool')
-rw-r--r--util/ifdtool/ifdtool.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c
index a1a327f6ed..83caa693ab 100644
--- a/util/ifdtool/ifdtool.c
+++ b/util/ifdtool/ifdtool.c
@@ -1067,7 +1067,7 @@ static void unlock_descriptor(const char *filename, char *image, int size)
}
/* Set the AltMeDisable (or HAP for >= IFD_VERSION_2) */
-void fpsba_set_altmedisable(fpsba_t *fpsba, fmsba_t *fmsba, bool altmedisable)
+static void fpsba_set_altmedisable(fpsba_t *fpsba, fmsba_t *fmsba, bool altmedisable)
{
if (ifd_version >= IFD_VERSION_2) {
printf("%sting the HAP bit to %s Intel ME...\n",
@@ -1107,7 +1107,7 @@ void fpsba_set_altmedisable(fpsba_t *fpsba, fmsba_t *fmsba, bool altmedisable)
}
}
-void inject_region(const char *filename, char *image, int size,
+static void inject_region(const char *filename, char *image, int size,
unsigned int region_type, const char *region_fname)
{
frba_t *frba = find_frba(image, size);
@@ -1173,7 +1173,7 @@ void inject_region(const char *filename, char *image, int size,
write_image(filename, image, size);
}
-unsigned int next_pow2(unsigned int x)
+static unsigned int next_pow2(unsigned int x)
{
unsigned int y = 1;
if (x == 0)
@@ -1200,7 +1200,7 @@ static int regions_collide(const region_t *r1, const region_t *r2)
return !(r1->limit < r2->base || r1->base > r2->limit);
}
-void new_layout(const char *filename, char *image, int size,
+static void new_layout(const char *filename, char *image, int size,
const char *layout_fname)
{
FILE *romlayout;