Skip to contentSkip to conversation

virtio_balloon: Fix build error seen with CONFIG_BALLOON_COMPACTION=n

PATCH In review Guenter Roeck 2 participants 2 messages Feb 20, 2020

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

PATCH 1/1 virtio_balloon: Fix build error seen with CONFIG_BALLOON_COMPACTION=n

0day reports:

drivers//virtio/virtio_balloon.c: In function 'virtballoon_probe':
drivers//virtio/virtio_balloon.c:960:1: error:
label 'out_del_vqs' defined but not used [-Werror=unused-label]

This is seen with CONFIG_BALLOON_COMPACTION=n.

Fixes 1ad6f58ea936 ("virtio_balloon: Fix memory leaks on errors in virtballoon_probe()")
Cc David Hildenbrand <[email protected]>
Cc Michael S. Tsirkin <[email protected]>
---
 drivers/virtio/virtio_balloon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_balloon.c +1 -1
index 7bfe365d9372..341458fd95ca 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
2.17.1
#1 lore raw
Quoted 10 lines

Am 20.02.2020 um 03:32 schrieb Guenter Roeck <[email protected]>:

0day reports:

drivers//virtio/virtio_balloon.c: In function 'virtballoon_probe':
drivers//virtio/virtio_balloon.c:960:1: error:
label 'out_del_vqs' defined but not used [-Werror=unused-label]

Quoted 8 lines

This is seen with CONFIG_BALLOON_COMPACTION=n.

Fixes 1ad6f58ea936 ("virtio_balloon: Fix memory leaks on errors in virtballoon_probe()")
Cc David Hildenbrand <[email protected]>
Cc Michael S. Tsirkin <[email protected]>

---

There is already a patch on the list to fix that (and it looks exactly like this one :) ). Unfortunately, not picked up yet.

Thanks!