qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] vhost_net: Add missing 'static' attribute


From: Stefan Weil
Subject: [Qemu-devel] [PATCH] vhost_net: Add missing 'static' attribute
Date: Sat, 28 Feb 2015 19:19:17 +0100

This fixes a warning from smatch.

Signed-off-by: Stefan Weil <address@hidden>
---
 hw/net/vhost_net.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
index 4e3a061..ebfb6db 100644
--- a/hw/net/vhost_net.c
+++ b/hw/net/vhost_net.c
@@ -56,7 +56,7 @@ static const int kernel_feature_bits[] = {
 };
 
 /* Features supported by others. */
-const int user_feature_bits[] = {
+static const int user_feature_bits[] = {
     VIRTIO_F_NOTIFY_ON_EMPTY,
     VIRTIO_RING_F_INDIRECT_DESC,
     VIRTIO_RING_F_EVENT_IDX,
-- 
1.7.10.4




reply via email to

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