diff options
| author | Stefan Weil | 2015-02-06 22:43:17 +0100 |
|---|---|---|
| committer | Michael Tokarev | 2015-02-10 08:26:05 +0100 |
| commit | 43d735547b2a29cafd7d9529ac38734950b235f7 (patch) | |
| tree | 1bc668205decf1076e578ba777dc7bcaca9d3845 | |
| parent | vga: Fix warning caused by missing 'static' attribute (diff) | |
| download | qemu-43d735547b2a29cafd7d9529ac38734950b235f7.tar.gz qemu-43d735547b2a29cafd7d9529ac38734950b235f7.tar.xz qemu-43d735547b2a29cafd7d9529ac38734950b235f7.zip | |
virtio: Fix warning caused by missing 'static' attribute
Warning from the Sparse static analysis tool:
hw/char/virtio-serial-bus.c:31:3:
warning: symbol 'vserdevices' was not declared. Should it be static?
Cc: Amit Shah <amit.shah@redhat.com>
Cc: Anthony Liguori <aliguori@amazon.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
| -rw-r--r-- | hw/char/virtio-serial-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index 37a6f442fa..47fbb34bdd 100644 --- a/hw/char/virtio-serial-bus.c +++ b/hw/char/virtio-serial-bus.c @@ -26,7 +26,7 @@ #include "hw/virtio/virtio-serial.h" #include "hw/virtio/virtio-access.h" -struct VirtIOSerialDevices { +static struct VirtIOSerialDevices { QLIST_HEAD(, VirtIOSerial) devices; } vserdevices; |
