Commit 97968358 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

virtio_pci iomem annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b2ddb901
...@@ -37,7 +37,7 @@ struct virtio_pci_device ...@@ -37,7 +37,7 @@ struct virtio_pci_device
struct pci_dev *pci_dev; struct pci_dev *pci_dev;
/* the IO mapping for the PCI config space */ /* the IO mapping for the PCI config space */
void *ioaddr; void __iomem *ioaddr;
/* a list of queues so we can dispatch IRQs */ /* a list of queues so we can dispatch IRQs */
spinlock_t lock; spinlock_t lock;
...@@ -111,7 +111,7 @@ static void vp_get(struct virtio_device *vdev, unsigned offset, ...@@ -111,7 +111,7 @@ static void vp_get(struct virtio_device *vdev, unsigned offset,
void *buf, unsigned len) void *buf, unsigned len)
{ {
struct virtio_pci_device *vp_dev = to_vp_device(vdev); struct virtio_pci_device *vp_dev = to_vp_device(vdev);
void *ioaddr = vp_dev->ioaddr + VIRTIO_PCI_CONFIG + offset; void __iomem *ioaddr = vp_dev->ioaddr + VIRTIO_PCI_CONFIG + offset;
u8 *ptr = buf; u8 *ptr = buf;
int i; int i;
...@@ -125,7 +125,7 @@ static void vp_set(struct virtio_device *vdev, unsigned offset, ...@@ -125,7 +125,7 @@ static void vp_set(struct virtio_device *vdev, unsigned offset,
const void *buf, unsigned len) const void *buf, unsigned len)
{ {
struct virtio_pci_device *vp_dev = to_vp_device(vdev); struct virtio_pci_device *vp_dev = to_vp_device(vdev);
void *ioaddr = vp_dev->ioaddr + VIRTIO_PCI_CONFIG + offset; void __iomem *ioaddr = vp_dev->ioaddr + VIRTIO_PCI_CONFIG + offset;
const u8 *ptr = buf; const u8 *ptr = buf;
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment