hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/virtio/virtio_pci_legacy.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Virtio PCI driver - legacy device support
34 *
....@@ -11,10 +12,6 @@
1112 * Anthony Liguori <aliguori@us.ibm.com>
1213 * Rusty Russell <rusty@rustcorp.com.au>
1314 * Michael S. Tsirkin <mst@redhat.com>
14
- *
15
- * This work is licensed under the terms of the GNU GPL, version 2 or later.
16
- * See the COPYING file in the top-level directory.
17
- *
1815 */
1916
2017 #include "virtio_pci_common.h"
....@@ -52,7 +49,8 @@
5249 {
5350 struct virtio_pci_device *vp_dev = to_vp_device(vdev);
5451 void __iomem *ioaddr = vp_dev->ioaddr +
55
- VIRTIO_PCI_CONFIG(vp_dev) + offset;
52
+ VIRTIO_PCI_CONFIG_OFF(vp_dev->msix_enabled) +
53
+ offset;
5654 u8 *ptr = buf;
5755 int i;
5856
....@@ -67,7 +65,8 @@
6765 {
6866 struct virtio_pci_device *vp_dev = to_vp_device(vdev);
6967 void __iomem *ioaddr = vp_dev->ioaddr +
70
- VIRTIO_PCI_CONFIG(vp_dev) + offset;
68
+ VIRTIO_PCI_CONFIG_OFF(vp_dev->msix_enabled) +
69
+ offset;
7170 const u8 *ptr = buf;
7271 int i;
7372