提交 d51fcfac 编写于 作者: K KONRAD Frederic 提交者: Anthony Liguori

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: NKONRAD Frederic <fred.konrad@greensocs.com>
Message-id: 1366791683-5350-3-git-send-email-fred.konrad@greensocs.com
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 5d448f9d
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
#define VIRTIO_EXT_CODE 0x2603 #define VIRTIO_EXT_CODE 0x2603
static void virtio_s390_bus_new(VirtioBusState *bus, VirtIOS390Device *dev);
static const TypeInfo s390_virtio_bus_info = { static const TypeInfo s390_virtio_bus_info = {
.name = TYPE_S390_VIRTIO_BUS, .name = TYPE_S390_VIRTIO_BUS,
.parent = TYPE_BUS, .parent = TYPE_BUS,
...@@ -664,7 +666,7 @@ static const TypeInfo s390_virtio_bridge_info = { ...@@ -664,7 +666,7 @@ static const TypeInfo s390_virtio_bridge_info = {
/* virtio-s390-bus */ /* 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); DeviceState *qdev = DEVICE(dev);
BusState *qbus; BusState *qbus;
......
...@@ -79,8 +79,6 @@ typedef struct VirtioBusClass VirtioS390BusClass; ...@@ -79,8 +79,6 @@ typedef struct VirtioBusClass VirtioS390BusClass;
typedef struct VirtIOS390Device VirtIOS390Device; typedef struct VirtIOS390Device VirtIOS390Device;
void virtio_s390_bus_new(VirtioBusState *bus, VirtIOS390Device *dev);
typedef struct VirtIOS390DeviceClass { typedef struct VirtIOS390DeviceClass {
DeviceClass qdev; DeviceClass qdev;
int (*init)(VirtIOS390Device *dev); int (*init)(VirtIOS390Device *dev);
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include "virtio-ccw.h" #include "virtio-ccw.h"
#include "trace.h" #include "trace.h"
static void virtio_ccw_bus_new(VirtioBusState *bus, VirtioCcwDevice *dev);
static int virtual_css_bus_reset(BusState *qbus) static int virtual_css_bus_reset(BusState *qbus)
{ {
/* This should actually be modelled via the generic css */ /* This should actually be modelled via the generic css */
...@@ -1060,7 +1062,7 @@ static const TypeInfo virtual_css_bridge_info = { ...@@ -1060,7 +1062,7 @@ static const TypeInfo virtual_css_bridge_info = {
/* virtio-ccw-bus */ /* 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); DeviceState *qdev = DEVICE(dev);
BusState *qbus; BusState *qbus;
......
...@@ -60,8 +60,6 @@ typedef struct VirtioBusClass VirtioCcwBusClass; ...@@ -60,8 +60,6 @@ typedef struct VirtioBusClass VirtioCcwBusClass;
typedef struct VirtioCcwDevice VirtioCcwDevice; typedef struct VirtioCcwDevice VirtioCcwDevice;
void virtio_ccw_bus_new(VirtioBusState *bus, VirtioCcwDevice *dev);
typedef struct VirtIOCCWDeviceClass { typedef struct VirtIOCCWDeviceClass {
DeviceClass parent_class; DeviceClass parent_class;
int (*init)(VirtioCcwDevice *dev); int (*init)(VirtioCcwDevice *dev);
......
...@@ -98,6 +98,8 @@ ...@@ -98,6 +98,8 @@
/* HACK for virtio to determine if it's running a big endian guest */ /* HACK for virtio to determine if it's running a big endian guest */
bool virtio_is_big_endian(void); bool virtio_is_big_endian(void);
static void virtio_pci_bus_new(VirtioBusState *bus, VirtIOPCIProxy *dev);
/* virtio device */ /* virtio device */
/* DeviceState to VirtIOPCIProxy. For use off data-path. TODO: use QOM. */ /* DeviceState to VirtIOPCIProxy. For use off data-path. TODO: use QOM. */
static inline VirtIOPCIProxy *to_virtio_pci_proxy(DeviceState *d) static inline VirtIOPCIProxy *to_virtio_pci_proxy(DeviceState *d)
...@@ -1524,7 +1526,7 @@ static const TypeInfo virtio_rng_pci_info = { ...@@ -1524,7 +1526,7 @@ static const TypeInfo virtio_rng_pci_info = {
/* virtio-pci-bus */ /* 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); DeviceState *qdev = DEVICE(dev);
BusState *qbus; BusState *qbus;
......
...@@ -201,7 +201,6 @@ struct VirtIORngPCI { ...@@ -201,7 +201,6 @@ struct VirtIORngPCI {
}; };
void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev); 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. */ /* Virtio ABI version, if we increment this, we break the guest driver. */
#define VIRTIO_PCI_ABI_VERSION 0 #define VIRTIO_PCI_ABI_VERSION 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册