Skip to contentSkip to conversation

virtio: pci: use correct type in virtio_pci_bind()

PATCH New Heinrich Schuchardt 3 participants 3 messages Oct 16, 2019 – Nov 1, 2019 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio: pci: use correct type in virtio_pci_bind()

For printing as %u we should use an unsigned int.

---
 drivers/virtio/virtio_pci_legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_pci_legacy.c +1 -1
index 08764ee6f2..202e5ab1d3 100644
@@ -277,7 +277,7 @@ static int virtio_pci_notify(struct udevice *udev, struct virtqueue *vq)
 
 static int virtio_pci_bind(struct udevice *udev)
 {
-	static int num_devs;
+	static unsigned int num_devs;
 	char name[20];
 
 	/* Create a unique device name for PCI type devices */

--
2.23.0

#2 lore raw

PATCH 1/1 virtio: pci: use correct type in virtio_pci_bind()

In reply to Heinrich Schuchardt
Quoted 4 lines · Heinrich Schuchardt

For printing as %u we should use an unsigned int.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191101/50a99379/attachment.sig>