diff options
author | Maciej Pijanka <maciej.pijanka@gmail.com> | 2009-10-27 14:29:29 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-10-27 14:29:29 +0000 |
commit | ea92185755a578d9a1b5df5cbf7b05ee2cea2390 (patch) | |
tree | d7ffa935cad6e5ae7b50fa5c9ec158e0493df0c5 /src/lib | |
parent | 18d7c2e31e868c9f9f78b907f607b8a1b98b46aa (diff) |
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 <maciej.pijanka@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4871 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/cbmem.c | 4 | ||||
-rw-r--r-- | src/lib/clog2.c | 2 | ||||
-rw-r--r-- | src/lib/lzma.c | 1 |
3 files changed, 5 insertions, 2 deletions
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++) { diff --git a/src/lib/clog2.c b/src/lib/clog2.c index b9b173177c..f7c6e59284 100644 --- a/src/lib/clog2.c +++ b/src/lib/clog2.c @@ -7,6 +7,8 @@ /* Assume 8 bits per byte */ #define CHAR_BIT 8 +unsigned long log2(unsigned long x); + unsigned long log2(unsigned long x) { // assume 8 bits per byte. diff --git a/src/lib/lzma.c b/src/lib/lzma.c index 25597fba49..03ca16399a 100644 --- a/src/lib/lzma.c +++ b/src/lib/lzma.c @@ -14,6 +14,7 @@ SDK 4.42, which is written and distributed to public domain by Igor Pavlov. #include <console/console.h> #include <string.h> +unsigned long ulzma(unsigned char * src, unsigned char * dst); unsigned long ulzma(unsigned char * src, unsigned char * dst) { |