Skip to content
Commit 0f8a0b0b authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio_pci_modern: __force cast the notify mapping



When switching virtio_pci_modern to use a helper for mappings we lost an
__iomem tag. We should restore it.

However, virtio_pci_modern is playing tricks by hiding an iomem pointer
in a regular vq->priv pointer. Which is okay as long as it's
all contained within a single file, but we need to __force cast
the value otherwise we'll get sparse warnings.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: 7dca6c0e ("virtio-pci library: switch to use vp_modern_map_vq_notify()")
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 56190031
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