From ea92185755a578d9a1b5df5cbf7b05ee2cea2390 Mon Sep 17 00:00:00 2001 From: Maciej Pijanka Date: Tue, 27 Oct 2009 14:29:29 +0000 Subject: Add few missing prototypes, and remove few unused (thus lonelly) variables. TODO - x86emu need (imo) some common header with prototypes at least - clog2, ulzma, hardwaremain prototypes added by this patch probably should be moved to some header too. - in src/devices/device_util.c prototype is before function because seems, it is used only within same file, if not it should be moved to debug section of prototypes in include/device/device.h Signed-off-by: Maciej Pijanka Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4871 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/cbmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/cbmem.c') diff --git a/src/lib/cbmem.c b/src/lib/cbmem.c index 0ed4bc43ea..450ab5f585 100644 --- a/src/lib/cbmem.c +++ b/src/lib/cbmem.c @@ -90,7 +90,7 @@ int cbmem_reinit(u64 baseaddr) struct cbmem_entry *cbmem_toc; cbmem_toc = (struct cbmem_entry *)(unsigned long)baseaddr; - debug("Re-Initializing CBMEM area to 0x%lx\n", baseaddr); + debug("Re-Initializing CBMEM area to 0x%lx\n", (unsigned long)baseaddr); #ifndef __ROMCC__ bss_cbmem_toc = cbmem_toc; #endif @@ -212,7 +212,7 @@ void cbmem_list(void) #endif if (cbmem_toc == NULL) - return NULL; + return; for (i = 0; i < MAX_CBMEM_ENTRIES; i++) { -- cgit v1.2.3