From 2e6727362410294ad39116a3d84d99746565ce05 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 12 Nov 2009 16:38:03 +0000 Subject: Add CONFIG_WARNINGS_ARE_ERRORS and set it for qemu. Remove all remaining warnings from qemu. Signed-off-by: Myles Watson Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4939 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/console/printk.c | 2 +- src/console/vsprintf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/console') diff --git a/src/console/printk.c b/src/console/printk.c index 3b1ae24ec1..e06468236c 100644 --- a/src/console/printk.c +++ b/src/console/printk.c @@ -23,7 +23,7 @@ int default_message_loglevel = DEFAULT_MESSAGE_LOGLEVEL; int minimum_console_loglevel = MINIMUM_CONSOLE_LOGLEVEL; int default_console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; -static spinlock_t console_lock = SPIN_LOCK_UNLOCKED; +DECLARE_SPIN_LOCK(console_lock) int do_printk(int msg_level, const char *fmt, ...) { diff --git a/src/console/vsprintf.c b/src/console/vsprintf.c index c4c91115c2..090063cf62 100644 --- a/src/console/vsprintf.c +++ b/src/console/vsprintf.c @@ -24,7 +24,7 @@ #include #include -static spinlock_t vsprintf_lock = SPIN_LOCK_UNLOCKED; +DECLARE_SPIN_LOCK(vsprintf_lock) static char *str_buf; -- cgit v1.2.3