[U-Boot] [PATCH 1/1] virtio: pci: use correct type in virtio_pci_bind()

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Oct 16 10:59:49 UTC 2019


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

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 drivers/virtio/virtio_pci_legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
index 08764ee6f2..202e5ab1d3 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drivers/virtio/virtio_pci_legacy.c
@@ -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



More information about the U-Boot mailing list