lkml.org 
[lkml]   [2011]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC 2/5] virtio-pci: Fix compilation issue
Date
Signed-off-by: Sasha Levin <levinsasha928@gmail.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


\
 
 \ /
  Last update: 2011-11-15 00:49    [W:0.052 / U:1.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site