summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-17 11:18:53 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-17 11:18:53 +0000
commit3e791a7b17e06c0c31e8ac6a9d50d5060b921013 (patch)
treea03fd8e678d1bd1ea7d94d8022a3132d98c2ff34
parenta9cd634494d3cbae8d3c1519fa99a07e13400794 (diff)
downloadqemu-3e791a7b17e06c0c31e8ac6a9d50d5060b921013.tar.gz
qemu-3e791a7b17e06c0c31e8ac6a9d50d5060b921013.tar.bz2
qemu-3e791a7b17e06c0c31e8ac6a9d50d5060b921013.zip
Suppress a Sparse warning
Move the export to a file used by both qdev.c and sysbus.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/qdev.c1
-rw-r--r--hw/qdev.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 001c74ce0e..faecc767af 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -32,7 +32,6 @@
/* This is a nasty hack to allow passing a NULL bus to qdev_create. */
static BusState *main_system_bus;
-extern struct BusInfo system_bus_info;
static DeviceInfo *device_info_list;
diff --git a/hw/qdev.h b/hw/qdev.h
index 11744fa539..59ac8dc512 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -162,4 +162,7 @@ void qdev_prop_set_defaults(DeviceState *dev, Property *props);
void qdev_prop_register_compat(CompatProperty *props);
void qdev_prop_set_compat(DeviceState *dev);
+/* This is a nasty hack to allow passing a NULL bus to qdev_create. */
+extern struct BusInfo system_bus_info;
+
#endif