]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_pci_modern: __force cast the notify mapping
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 4 May 2021 08:12:10 +0000 (04:12 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 4 May 2021 08:19:58 +0000 (04:19 -0400)
commit2cf5a6169cedeafbcec8badf773b65c3a70b9e57
treed9f44fc0f9864e6c42f6005b93bf33abbf964551
parent3d97c259e614719982821c2167229632a6e586c4
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: kernel test robot <lkp@intel.com>
Fixes: e9c6c65697ac ("virtio-pci library: switch to use vp_modern_map_vq_notify()")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_modern.c