diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-07-17 11:18:53 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-22 15:40:55 -0500 |
commit | 0d0e17cf2572ec5f87cb300436ad8d94461b7ccf (patch) | |
tree | 969513a52e07cbb64af1b0c7c57a697377542f87 /hw | |
parent | 344a1d16f2530ddfdbc49333308a48f6d7db656a (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')
-rw-r--r-- | hw/qdev.c | 1 | ||||
-rw-r--r-- | hw/qdev.h | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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; @@ -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 |