From 0bfb5c4fb2a8626ccc6f663d1c8ca8e88f6d6666 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 23 Mar 2008 15:34:04 +0000 Subject: 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 Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3187 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/coreinfo/coreboot_module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'payloads/coreinfo/coreboot_module.c') 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); -- cgit v1.2.3