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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user