Skip to contentSkip to conversation

um: virt-pci: Fix build failure

PATCH Applied Florian Fainelli 2 participants 2 messages May 8 – May 9

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

PATCH 1/1 um: virt-pci: Fix build failure

Commit a27e95a6ff3f ("um: virt-pci: properly remove PCI device from bus") assumed that virtio_reset_device() is present in the 5.15.y kernel but it is not and so backport would now cause a build failure.

Fixes a27e95a6ff3f ("um: virt-pci: properly remove PCI device from bus")
---
 arch/um/drivers/virt-pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/drivers/virt-pci.c +1 -1
index d762d726b66c..0666c9e0998d 100644
@@ -641,7 +641,7 @@ static void um_pci_virtio_remove(struct virtio_device *vdev)
 	}
 
 	/* Stop all virtqueues */
-	virtio_reset_device(vdev);
+	vdev->config->reset(vdev);
 	dev->cmd_vq = NULL;
 	dev->irq_vq = NULL;
 	vdev->config->del_vqs(vdev);
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 3 lines · Florian Fainelli

Commit a27e95a6ff3f ("um: virt-pci: properly remove PCI device from bus") assumed that virtio_reset_device() is present in the 5.15.y kernel but it is not and so backport would now cause a build failure.

Queued for 5.15, thanks.

--
Thanks,
Sasha