aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2012-05-12 19:45:22 +0000
committerBlue Swirl <blauwirbel@gmail.com>2012-05-19 15:41:14 +0000
commit4636b9d1466adde156d469c92d6e7cae7311b81e (patch)
tree79ab9eb34b3c6dc411a87ed8e8b93a0211cf55fe /hw
parent5f2bf0fe55b32a1258fbe468bd23fd9f5e2272dd (diff)
downloadqemu-4636b9d1466adde156d469c92d6e7cae7311b81e.zip
qemu-4636b9d1466adde156d469c92d6e7cae7311b81e.tar.gz
qemu-4636b9d1466adde156d469c92d6e7cae7311b81e.tar.bz2
virtio-pci: add missing 'static'
There are no outside references to virtio_portio. Add missing 'static' specifier. Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/virtio-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c
index 4a4413d..8a931ce 100644
--- a/hw/virtio-pci.c
+++ b/hw/virtio-pci.c
@@ -491,7 +491,7 @@ static void virtio_pci_config_writel(void *opaque, uint32_t addr, uint32_t val)
virtio_config_writel(proxy->vdev, addr, val);
}
-const MemoryRegionPortio virtio_portio[] = {
+static const MemoryRegionPortio virtio_portio[] = {
{ 0, 0x10000, 1, .write = virtio_pci_config_writeb, },
{ 0, 0x10000, 2, .write = virtio_pci_config_writew, },
{ 0, 0x10000, 4, .write = virtio_pci_config_writel, },