Commit a5f7a24f authored by Jason Wang's avatar Jason Wang Committed by Michael S. Tsirkin

virtio_pci_modern: hide vp_modern_get_queue_notify_off()

All users (both virtio-pci library and vp_vdpa driver) has been
switched to use vp_modern_map_vq_notify(). So there's no need to
export the low level helper of vp_modern_get_queue_notify_off().
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210415073147.19331-5-jasowang@redhat.comSigned-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarEli Cohen <elic@nvidia.com>
parent 11d8ffed
...@@ -584,14 +584,13 @@ EXPORT_SYMBOL_GPL(vp_modern_get_num_queues); ...@@ -584,14 +584,13 @@ EXPORT_SYMBOL_GPL(vp_modern_get_num_queues);
* *
* Returns the notification offset for a virtqueue * Returns the notification offset for a virtqueue
*/ */
u16 vp_modern_get_queue_notify_off(struct virtio_pci_modern_device *mdev, static u16 vp_modern_get_queue_notify_off(struct virtio_pci_modern_device *mdev,
u16 index) u16 index)
{ {
vp_iowrite16(index, &mdev->common->queue_select); vp_iowrite16(index, &mdev->common->queue_select);
return vp_ioread16(&mdev->common->queue_notify_off); return vp_ioread16(&mdev->common->queue_notify_off);
} }
EXPORT_SYMBOL_GPL(vp_modern_get_queue_notify_off);
/* /*
* vp_modern_map_vq_notify - map notification area for a * vp_modern_map_vq_notify - map notification area for a
......
...@@ -99,8 +99,6 @@ void vp_modern_set_queue_size(struct virtio_pci_modern_device *mdev, ...@@ -99,8 +99,6 @@ void vp_modern_set_queue_size(struct virtio_pci_modern_device *mdev,
u16 vp_modern_get_queue_size(struct virtio_pci_modern_device *mdev, u16 vp_modern_get_queue_size(struct virtio_pci_modern_device *mdev,
u16 idx); u16 idx);
u16 vp_modern_get_num_queues(struct virtio_pci_modern_device *mdev); u16 vp_modern_get_num_queues(struct virtio_pci_modern_device *mdev);
u16 vp_modern_get_queue_notify_off(struct virtio_pci_modern_device *mdev,
u16 idx);
void __iomem *vp_modern_map_capability(struct virtio_pci_modern_device *mdev, int off, void __iomem *vp_modern_map_capability(struct virtio_pci_modern_device *mdev, int off,
size_t minlen, size_t minlen,
u32 align, u32 align,
......
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