]> Git Repo - qemu.git/commitdiff
Suppress a Sparse warning
authorBlue Swirl <[email protected]>
Fri, 17 Jul 2009 11:18:53 +0000 (11:18 +0000)
committerBlue Swirl <[email protected]>
Fri, 17 Jul 2009 11:18:53 +0000 (11:18 +0000)
Move the export to a file used by both qdev.c and sysbus.c.

Signed-off-by: Blue Swirl <[email protected]>
hw/qdev.c
hw/qdev.h

index 001c74ce0e69a72264c13019b6a4cbb2e7140a81..faecc767af1517fc413243357fd247f524328374 100644 (file)
--- 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;
 
index 11744fa5396c7b92677dc3e96f03c1e09b2f2196..59ac8dc512b9ec841b43f460b4832b259eaec623 100644 (file)
--- 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
This page took 0.025446 seconds and 4 git commands to generate.