diff --git a/hw/s390x/s390-virtio-bus.c b/hw/s390x/s390-virtio-bus.c index 95c9275f47668d8b1ee801fe4e9d42abea9aa730..0cfbff62623fc54448f8ca591a14a84e7772bec0 100644 --- a/hw/s390x/s390-virtio-bus.c +++ b/hw/s390x/s390-virtio-bus.c @@ -47,6 +47,8 @@ #define VIRTIO_EXT_CODE 0x2603 +static void virtio_s390_bus_new(VirtioBusState *bus, VirtIOS390Device *dev); + static const TypeInfo s390_virtio_bus_info = { .name = TYPE_S390_VIRTIO_BUS, .parent = TYPE_BUS, @@ -664,7 +666,7 @@ static const TypeInfo s390_virtio_bridge_info = { /* virtio-s390-bus */ -void virtio_s390_bus_new(VirtioBusState *bus, VirtIOS390Device *dev) +static void virtio_s390_bus_new(VirtioBusState *bus, VirtIOS390Device *dev) { DeviceState *qdev = DEVICE(dev); BusState *qbus; diff --git a/hw/s390x/s390-virtio-bus.h b/hw/s390x/s390-virtio-bus.h index 991f9e2527bee63172742b5c50ed44891e27afe3..ac81bd89eee52cdae2d31910d8ddb8b1f43ac3e8 100644 --- a/hw/s390x/s390-virtio-bus.h +++ b/hw/s390x/s390-virtio-bus.h @@ -79,8 +79,6 @@ typedef struct VirtioBusClass VirtioS390BusClass; typedef struct VirtIOS390Device VirtIOS390Device; -void virtio_s390_bus_new(VirtioBusState *bus, VirtIOS390Device *dev); - typedef struct VirtIOS390DeviceClass { DeviceClass qdev; int (*init)(VirtIOS390Device *dev); diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index 930531b127963fc8e70c69f878da2d9c187bbfa6..0591dc2fb078c84be2ec4b461c237d15511735e8 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -27,6 +27,8 @@ #include "virtio-ccw.h" #include "trace.h" +static void virtio_ccw_bus_new(VirtioBusState *bus, VirtioCcwDevice *dev); + static int virtual_css_bus_reset(BusState *qbus) { /* This should actually be modelled via the generic css */ @@ -1060,7 +1062,7 @@ static const TypeInfo virtual_css_bridge_info = { /* virtio-ccw-bus */ -void virtio_ccw_bus_new(VirtioBusState *bus, VirtioCcwDevice *dev) +static void virtio_ccw_bus_new(VirtioBusState *bus, VirtioCcwDevice *dev) { DeviceState *qdev = DEVICE(dev); BusState *qbus; diff --git a/hw/s390x/virtio-ccw.h b/hw/s390x/virtio-ccw.h index 8599248fc54bf85af91a7de98c93abb99104fc1b..04ba1b99ee5ccf06db980da4c00ccdc373b30798 100644 --- a/hw/s390x/virtio-ccw.h +++ b/hw/s390x/virtio-ccw.h @@ -60,8 +60,6 @@ typedef struct VirtioBusClass VirtioCcwBusClass; typedef struct VirtioCcwDevice VirtioCcwDevice; -void virtio_ccw_bus_new(VirtioBusState *bus, VirtioCcwDevice *dev); - typedef struct VirtIOCCWDeviceClass { DeviceClass parent_class; int (*init)(VirtioCcwDevice *dev); diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 1269a2280008919fdb10e6f182f969de0cd817c2..6278427d5b24bfd4269bd496d3abd42d30a0709e 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -98,6 +98,8 @@ /* HACK for virtio to determine if it's running a big endian guest */ bool virtio_is_big_endian(void); +static void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev); + /* virtio device */ /* DeviceState to VirtIOPCIProxy. For use off data-path. TODO: use QOM. */ static inline VirtIOPCIProxy *to_virtio_pci_proxy(DeviceState *d) @@ -1524,7 +1526,7 @@ static const TypeInfo virtio_rng_pci_info = { /* virtio-pci-bus */ -void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev) +static void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev) { DeviceState *qdev = DEVICE(dev); BusState *qbus; diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h index ac718248e15dec8e0f72d462531078b959bf1d76..35ae6aceb01b77840c24b247f0b120b7e6e91315 100644 --- a/hw/virtio/virtio-pci.h +++ b/hw/virtio/virtio-pci.h @@ -201,7 +201,6 @@ struct VirtIORngPCI { }; void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev); -void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev); /* Virtio ABI version, if we increment this, we break the guest driver. */ #define VIRTIO_PCI_ABI_VERSION 0