summaryrefslogtreecommitdiff
path: root/payloads/coreinfo/coreboot_module.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-03-23 15:34:04 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-03-23 15:34:04 +0000
commit0bfb5c4fb2a8626ccc6f663d1c8ca8e88f6d6666 (patch)
treea0483c5458f6b6bdce68892334ffb53f265b49a4 /payloads/coreinfo/coreboot_module.c
parentb0e3f39a39431f6448f4985a10379a580cf4c13c (diff)
downloadcoreboot-0bfb5c4fb2a8626ccc6f663d1c8ca8e88f6d6666.tar.xz
Make functions static (where possible) to reduce code size (trivial).
Also, disable header() for now, as it's not being used. Here are some stats on size differences: - ls 23820 coreinfo.old.elf 23564 coreinfo.new.elf - size *elf text data bss dec hex filename 15199 2468 181904 199571 30b93 coreinfo.old.elf 14934 2468 181912 199314 30a92 coreinfo.new.elf Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3187 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/coreinfo/coreboot_module.c')
-rw-r--r--payloads/coreinfo/coreboot_module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/payloads/coreinfo/coreboot_module.c b/payloads/coreinfo/coreboot_module.c
index 429d1235f5..45ed38cccd 100644
--- a/payloads/coreinfo/coreboot_module.c
+++ b/payloads/coreinfo/coreboot_module.c
@@ -121,7 +121,6 @@ int coreboot_module_redraw(WINDOW *win)
static void parse_memory(unsigned char *ptr)
{
struct cb_memory *mem = (struct cb_memory *)ptr;
-
int max = (MEM_RANGE_COUNT(mem) > MAX_MEMORY_COUNT)
? MAX_MEMORY_COUNT : MEM_RANGE_COUNT(mem);
int i;
@@ -236,7 +235,7 @@ static int parse_header(void *addr, int len)
return 1;
}
-int coreboot_module_init(void)
+static int coreboot_module_init(void)
{
int ret = parse_header((void *)0x00000, 0x1000);