[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 46/46] virtio: Fix warning caused by missing 'static'

From: Michael Tokarev
Subject: [Qemu-devel] [PULL 46/46] virtio: Fix warning caused by missing 'static' attribute
Date: Tue, 10 Feb 2015 09:34:35 +0300

From: Stefan Weil <address@hidden>

Warning from the Sparse static analysis tool:

 warning: symbol 'vserdevices' was not declared. Should it be static?

Cc: Amit Shah <address@hidden>
Cc: Anthony Liguori <address@hidden>
Cc: Michael S. Tsirkin <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
 hw/char/virtio-serial-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c
index 37a6f44..47fbb34 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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]