From 02a4d350c60223c628d7111efc330e6a4a3d7cc1 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 23 Feb 2007 12:36:45 +0000 Subject: [PATCH] fix more warnings. Signed-off-by: Stefan Reinauer Acked-by: Ronald G. Minnich git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@99 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/cachemain.c | 6 +++++- arch/x86/console.c | 2 +- util/lar/Makefile | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/cachemain.c b/arch/x86/cachemain.c index 7fac12e3a5..0b5cc92e44 100644 --- a/arch/x86/cachemain.c +++ b/arch/x86/cachemain.c @@ -30,6 +30,10 @@ void console_init(void); void die(const char *msg); int find_file(struct mem_file *archive, char *filename, struct mem_file *result); +// Is this value correct? +#define DCACHE_RAM_SIZE 0x8000 + + void post_code(u8 value) { outb(value, 0x80); @@ -56,7 +60,7 @@ static void enable_rom(void) void stage1_main(u32 bist) { int ret; - struct mem_file archive, result; + struct mem_file archive; post_code(0x02); diff --git a/arch/x86/console.c b/arch/x86/console.c index ecfb660886..567e485118 100644 --- a/arch/x86/console.c +++ b/arch/x86/console.c @@ -20,7 +20,7 @@ extern int vtxprintf(void (*)(unsigned char), const char *, va_list); extern void uart8250_tx_byte(unsigned, unsigned char); -int console_loglevel() +int console_loglevel(void) { return 8; } diff --git a/util/lar/Makefile b/util/lar/Makefile index d65fc92d2c..ae7b9aca61 100644 --- a/util/lar/Makefile +++ b/util/lar/Makefile @@ -24,7 +24,7 @@ $(obj)/util/lar/lar: $(patsubst %,$(src)/util/lar/%,$(SOURCE)) $(Q)printf "Building LAR utility..." $(Q)mkdir -p $(obj)/util/lar $(Q)$(HOSTCC) $(HOSTCFLAGS) -o $@ $^ - $(Q)printf "done." + $(Q)printf "done.\n" ## --------------------------------------------------------------------