Commit a9ff9df188615d653a5a904bafbe724d40143e35

Authored by Blue Swirl
1 parent 109819e0

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>
Showing 2 changed files with 3 additions and 1 deletions
hw/qdev.c
... ... @@ -32,7 +32,6 @@
32 32  
33 33 /* This is a nasty hack to allow passing a NULL bus to qdev_create. */
34 34 static BusState *main_system_bus;
35   -extern struct BusInfo system_bus_info;
36 35  
37 36 static DeviceInfo *device_info_list;
38 37  
... ...
hw/qdev.h
... ... @@ -162,4 +162,7 @@ void qdev_prop_set_defaults(DeviceState *dev, Property *props);
162 162 void qdev_prop_register_compat(CompatProperty *props);
163 163 void qdev_prop_set_compat(DeviceState *dev);
164 164  
  165 +/* This is a nasty hack to allow passing a NULL bus to qdev_create. */
  166 +extern struct BusInfo system_bus_info;
  167 +
165 168 #endif
... ...