virtio_balloon: Fix build error seen with CONFIG_BALLOON_COMPACTION=n
Subsystems (2)
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.
--- drivers/virtio/virtio_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_balloon.c +1 -1
@@ -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
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.Reported-by kbuild test robot <[email protected]>Fixes 1ad6f58ea936 ("virtio_balloon: Fix memory leaks on errors in virtballoon_probe()")Cc David Hildenbrand <[email protected]>Cc Michael S. Tsirkin <[email protected]>Signed-off-by Guenter Roeck <[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!