projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c261fef
)
virtio: pci: use correct type in virtio_pci_bind()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Wed, 16 Oct 2019 10:59:49 +0000
(12:59 +0200)
committer
Tom Rini
<trini@konsulko.com>
Thu, 31 Oct 2019 11:22:53 +0000
(07:22 -0400)
For printing as %u we should use an unsigned int.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/virtio/virtio_pci_legacy.c
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio_pci_legacy.c
b/drivers/virtio/virtio_pci_legacy.c
index 08764ee6f2929a1bbe486f64b6a80a56d6c85936..202e5ab1d31bea62541ce7e5707dad3b29a4d4db 100644
(file)
--- 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 */