summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-11-12 16:38:03 +0000
committerMyles Watson <mylesgw@gmail.com>2009-11-12 16:38:03 +0000
commit2e6727362410294ad39116a3d84d99746565ce05 (patch)
treefbe6a12f3fbbd5a2fc08a7c18df4e45faf356700 /src/devices
parentf9a72600a9fc4b6ed9aeebb7641c9209861c6548 (diff)
downloadcoreboot-2e6727362410294ad39116a3d84d99746565ce05.tar.xz
Add CONFIG_WARNINGS_ARE_ERRORS and set it for qemu.
Remove all remaining warnings from qemu. Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4939 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/device.c4
1 files changed, 3 insertions, 1 deletions
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;