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/pci_module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'payloads/coreinfo/pci_module.c') diff --git a/payloads/coreinfo/pci_module.c b/payloads/coreinfo/pci_module.c index 59e414a417..5099da2f01 100644 --- a/payloads/coreinfo/pci_module.c +++ b/payloads/coreinfo/pci_module.c @@ -125,7 +125,7 @@ static void show_config_space(WINDOW *win, int row, int col, int index) } } -int pci_module_redraw(WINDOW *win) +static int pci_module_redraw(WINDOW *win) { unsigned int bus, devfn, func; int i, last; @@ -237,7 +237,7 @@ static void pci_scan_bus(int bus) quicksort(devices, devices_index); } -int pci_module_handle(int key) +static int pci_module_handle(int key) { int ret = 0; @@ -270,7 +270,7 @@ int pci_module_handle(int key) return ret; } -int pci_module_init(void) +static int pci_module_init(void) { pci_scan_bus(0); return 0; -- cgit v1.2.3