Skip to contentSkip to conversation

virtio: silence a -Wunused-label warning

PATCH New Qiujun Huang 1 participant 1 message Mar 7, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio: silence a -Wunused-label warning

The label 'out_del_vqs:' is only used by CONFIG_BALLOON_COMPACTION, so move it to the region.

---
 drivers/virtio/virtio_balloon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_balloon.c +1 -1
index 7bfe365..341458f 100644
@@ -959,8 +959,8 @@ static int virtballoon_probe(struct virtio_device *vdev)
 	iput(vb->vb_dev_info.inode);
 out_kern_unmount:
 	kern_unmount(balloon_mnt);
-#endif
 out_del_vqs:
+#endif
 	vdev->config->del_vqs(vdev);
 out_free_vb:
 	kfree(vb);
Signature · 1 line
1.8.3.1