qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT a9ff9df] Suppress a Sparse warning


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT a9ff9df] Suppress a Sparse warning
Date: Fri, 17 Jul 2009 11:49:22 -0000

From: Blue Swirl <address@hidden>

Move the export to a file used by both qdev.c and sysbus.c.

Signed-off-by: Blue Swirl <address@hidden>

diff --git a/hw/qdev.c b/hw/qdev.c
index 001c74c..faecc76 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 11744fa..59ac8dc 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]