Commit a9ff9df188615d653a5a904bafbe724d40143e35
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
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 | ... | ... |