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/devices/device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/devices/device.c') diff --git a/src/devices/device.c b/src/devices/device.c index 9ce58c52c9..c337294c1f 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -58,7 +58,9 @@ extern struct device **last_dev_p; * * @see device_path */ -static spinlock_t dev_lock = SPIN_LOCK_UNLOCKED; + +DECLARE_SPIN_LOCK(dev_lock) + device_t alloc_dev(struct bus *parent, struct device_path *path) { device_t dev, child; -- cgit v1.2.3