Skip to contentSkip to conversation

virtio-balloon: switch to virtio_add_feature

PATCH Applied Cornelia Huck 2 participants 2 messages Apr 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-balloon: switch to virtio_add_feature

This was missed during the conversion of feature bit manipulation.

---
 hw/virtio/virtio-balloon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/virtio-balloon.c +1 -1
index 95b0643..2c5c7d0 100644
@@ -312,7 +312,7 @@ static void virtio_balloon_set_config(VirtIODevice *vdev,
 
 static uint32_t virtio_balloon_get_features(VirtIODevice *vdev, uint32_t f)
 {
-    f |= (1 << VIRTIO_BALLOON_F_STATS_VQ);
+    virtio_add_feature(&f, VIRTIO_BALLOON_F_STATS_VQ);
     return f;
 }
 
Signature · 1 line
2.1.4
#1 lore raw
Quoted 3 lines · Cornelia Huck

This was missed during the conversion of feature bit manipulation.

Applied to virtio 1.0 branch.

Quoted 19 lines
---
 hw/virtio/virtio-balloon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/virtio-balloon.c +1 -1
index 95b0643..2c5c7d0 100644
@@ -312,7 +312,7 @@ static void virtio_balloon_set_config(VirtIODevice *vdev,
 
 static uint32_t virtio_balloon_get_features(VirtIODevice *vdev, uint32_t f)
 {
-    f |= (1 << VIRTIO_BALLOON_F_STATS_VQ);
+    virtio_add_feature(&f, VIRTIO_BALLOON_F_STATS_VQ);
     return f;
 }
 
Signature · 1 line
2.1.4