Skip to contentSkip to conversation

vhost_net: Add missing 'static' attribute

PATCH Applied Stefan Weil 2 participants 2 messages Feb 28, 2015 – Mar 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vhost_net: Add missing 'static' attribute

This fixes a warning from smatch.

---
 hw/net/vhost_net.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/vhost_net.c +1 -1
index 4e3a061..ebfb6db 100644
@@ -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,
Signature · 1 line
1.7.10.4