From a9ff9df188615d653a5a904bafbe724d40143e35 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 17 Jul 2009 11:18:53 +0000 Subject: [PATCH] Suppress a Sparse warning Move the export to a file used by both qdev.c and sysbus.c. Signed-off-by: Blue Swirl --- hw/qdev.c | 1 - hw/qdev.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/qdev.c b/hw/qdev.c index 001c74ce0..faecc767a 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 11744fa53..59ac8dc51 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 -- 2.39.2