[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1321314197-5265-3-git-send-email-levinsasha928@gmail.com>
Date: Tue, 15 Nov 2011 01:43:14 +0200
From: Sasha Levin <levinsasha928@...il.com>
To: linux-kernel@...r.kernel.org
Cc: mst@...hat.com, rusty@...tcorp.com.au,
virtualization@...ts.linux-foundation.org, kvm@...r.kernel.org,
penberg@...nel.org, mingo@...e.hu,
Sasha Levin <levinsasha928@...il.com>
Subject: [RFC 2/5] virtio-pci: Fix compilation issue
Signed-off-by: Sasha Levin <levinsasha928@...il.com>
---
drivers/virtio/virtio_pci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c
index 7625434..d242fcc 100644
--- a/drivers/virtio/virtio_pci.c
+++ b/drivers/virtio/virtio_pci.c
@@ -129,10 +129,10 @@ static void __iomem *virtio_pci_map_cfg(struct virtio_pci_device *vp_dev, u8 cap
bir &= VIRTIO_PCI_CAP_CFG_BIR_MASK;
size >>= VIRTIO_PCI_CAP_CFG_SIZE_SHIFT;
size &= VIRTIO_PCI_CAP_CFG_SIZE_MASK;
- off >>= VIRTIO_PCI_CAP_CFG_OFF_SHIFT;
- off &= VIRTIO_PCI_CAP_CFG_OFF_MASK;
+ offset >>= VIRTIO_PCI_CAP_CFG_OFF_SHIFT;
+ offset &= VIRTIO_PCI_CAP_CFG_OFF_MASK;
/* Align offset appropriately */
- off &= ~(align - 1);
+ offset &= ~(align - 1);
/* It's possible for a device to supply a huge config space,
* but we'll never need to map more than a page ATM. */
--
1.7.8.rc1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists