summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/virtio_pci.h
diff options
context:
space:
mode:
authorChristoph Hellwig2017-02-05 18:15:20 +0100
committerMichael S. Tsirkin2017-02-27 19:54:03 +0100
commit53a020c661741f3b87ad3ac6fa545088aaebac9b (patch)
tree11bd25b59b4e0324efb664841ccfa15a44cc4fff /include/uapi/linux/virtio_pci.h
parentvirtio_pci: use shared interrupts for virtqueues (diff)
downloadkernel-qcow2-linux-53a020c661741f3b87ad3ac6fa545088aaebac9b.tar.gz
kernel-qcow2-linux-53a020c661741f3b87ad3ac6fa545088aaebac9b.tar.xz
kernel-qcow2-linux-53a020c661741f3b87ad3ac6fa545088aaebac9b.zip
virtio_pci: don't duplicate the msix_enable flag in struct pci_dev
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi/linux/virtio_pci.h')
-rw-r--r--include/uapi/linux/virtio_pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_pci.h b/include/uapi/linux/virtio_pci.h
index 90007a1abcab..15b4385a2be1 100644
--- a/include/uapi/linux/virtio_pci.h
+++ b/include/uapi/linux/virtio_pci.h
@@ -79,7 +79,7 @@
* configuration space */
#define VIRTIO_PCI_CONFIG_OFF(msix_enabled) ((msix_enabled) ? 24 : 20)
/* Deprecated: please use VIRTIO_PCI_CONFIG_OFF instead */
-#define VIRTIO_PCI_CONFIG(dev) VIRTIO_PCI_CONFIG_OFF((dev)->msix_enabled)
+#define VIRTIO_PCI_CONFIG(dev) VIRTIO_PCI_CONFIG_OFF((dev)->pci_dev->msix_enabled)
/* Virtio ABI version, this must match exactly */
#define VIRTIO_PCI_ABI_VERSION 0