diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-23 15:34:04 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-23 15:34:04 +0000 |
commit | 0bfb5c4fb2a8626ccc6f663d1c8ca8e88f6d6666 (patch) | |
tree | a0483c5458f6b6bdce68892334ffb53f265b49a4 /payloads/coreinfo/pci_module.c | |
parent | b0e3f39a39431f6448f4985a10379a580cf4c13c (diff) | |
download | coreboot-0bfb5c4fb2a8626ccc6f663d1c8ca8e88f6d6666.tar.gz coreboot-0bfb5c4fb2a8626ccc6f663d1c8ca8e88f6d6666.tar.bz2 coreboot-0bfb5c4fb2a8626ccc6f663d1c8ca8e88f6d6666.zip |
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/pci_module.c')
-rw-r--r-- | payloads/coreinfo/pci_module.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/payloads/coreinfo/pci_module.c b/payloads/coreinfo/pci_module.c index 59e414a417e4..5099da2f0117 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; |