From d51fcfac8aca37f5f10981d2229681474de6304d Mon Sep 17 00:00:00 2001 From: KONRAD Frederic Date: Wed, 24 Apr 2013 10:21:18 +0200 Subject: virtio-bus: make virtio_x_bus_new static. virtio_x_bus_new are only used in file scope. So this make them static. Signed-off-by: KONRAD Frederic Message-id: 1366791683-5350-3-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori --- hw/virtio/virtio-pci.c | 4 +++- hw/virtio/virtio-pci.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'hw/virtio') diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 1269a22..6278427 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 ac71824..35ae6ac 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 -- cgit v1.1