aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.h
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
commita9ff9df188615d653a5a904bafbe724d40143e35 (patch)
treea03fd8e678d1bd1ea7d94d8022a3132d98c2ff34 /hw/qdev.h
parent109819e0c037012c32b07a412c0d4f438448f9f8 (diff)
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>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h3
1 files changed, 3 insertions, 0 deletions
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