diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-04-24 10:21:18 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-24 11:50:20 -0500 |
commit | d51fcfac8aca37f5f10981d2229681474de6304d (patch) | |
tree | 3b85f0cdad4aafc7f5f2e7e361d87b2be1066e8f /hw/s390x | |
parent | 5d448f9dac460d0adf7d7549a9c324f50f1dd1e2 (diff) | |
download | qemu-d51fcfac8aca37f5f10981d2229681474de6304d.zip qemu-d51fcfac8aca37f5f10981d2229681474de6304d.tar.gz qemu-d51fcfac8aca37f5f10981d2229681474de6304d.tar.bz2 |
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 <fred.konrad@greensocs.com>
Message-id: 1366791683-5350-3-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r-- | hw/s390x/s390-virtio-bus.c | 4 | ||||
-rw-r--r-- | hw/s390x/s390-virtio-bus.h | 2 | ||||
-rw-r--r-- | hw/s390x/virtio-ccw.c | 4 | ||||
-rw-r--r-- | hw/s390x/virtio-ccw.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/hw/s390x/s390-virtio-bus.c b/hw/s390x/s390-virtio-bus.c index 95c9275..0cfbff6 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 991f9e2..ac81bd8 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 930531b..0591dc2 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 8599248..04ba1b9 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); |