• Gonglei's avatar
    virtio_pci_modern: fix complaint by sparse · 61bd405f
    Gonglei authored
    drivers/virtio/virtio_pci_modern.c:66:40: warning: incorrect type in argument 2 (different base types)
    drivers/virtio/virtio_pci_modern.c:66:40:    expected unsigned int [noderef] [usertype] <asn:2>*addr
    drivers/virtio/virtio_pci_modern.c:66:40:    got restricted __le32 [noderef] [usertype] <asn:2>*lo
    drivers/virtio/virtio_pci_modern.c:67:33: warning: incorrect type in argument 2 (different base types)
    drivers/virtio/virtio_pci_modern.c:67:33:    expected unsigned int [noderef] [usertype] <asn:2>*addr
    drivers/virtio/virtio_pci_modern.c:67:33:    got restricted __le32 [noderef] [usertype] <asn:2>*hi
    drivers/virtio/virtio_pci_modern.c:150:32: warning: incorrect type in argument 2 (different base types)
    drivers/virtio/virtio_pci_modern.c:150:32:    expected unsigned int [noderef] [usertype] <asn:2>*addr
    drivers/virtio/virtio_pci_modern.c:150:32:    got restricted __le32 [noderef] <asn:2>*<noident>
    drivers/virtio/virtio_pci_modern.c:151:39: warning: incorrect type in argument 1 (different base types)
    drivers/virtio/virtio_pci_modern.c:151:39:    expected unsigned int [noderef] [usertype] <asn:2>*addr
    drivers/virtio/virtio_pci_modern.c:151:39:    got restricted __le32 [noderef] <asn:2>*<noident>
    drivers/virtio/virtio_pci_modern.c:152:32: warning: incorrect type in argument 2 (different base types)
    drivers/virtio/virtio_pci_modern.c:152:32:    expected unsigned int [noderef] [usertype] <asn:2>*addr
    Signed-off-by: default avatarGonglei <arei.gonglei@huawei.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    61bd405f
virtio_pci_modern.c 20.4 KB