mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
virito_pci libray: hide vp_modern_map_capability()
No user now and the capability should not be setup externally. Instead, every access to the capability should be done via virtio_pci_modern_device. Signed-off-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20210415073147.19331-6-jasowang@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eli Cohen <elic@nvidia.com>
This commit is contained in:
parent
a5f7a24f49
commit
fd466b3694
@ -16,11 +16,10 @@
|
||||
*
|
||||
* Returns the io address of for the part of the capability
|
||||
*/
|
||||
void __iomem *vp_modern_map_capability(struct virtio_pci_modern_device *mdev, int off,
|
||||
size_t minlen,
|
||||
u32 align,
|
||||
u32 start, u32 size,
|
||||
size_t *len)
|
||||
static void __iomem *
|
||||
vp_modern_map_capability(struct virtio_pci_modern_device *mdev, int off,
|
||||
size_t minlen, u32 align, u32 start, u32 size,
|
||||
size_t *len)
|
||||
{
|
||||
struct pci_dev *dev = mdev->pci_dev;
|
||||
u8 bar;
|
||||
@ -90,7 +89,6 @@ void __iomem *vp_modern_map_capability(struct virtio_pci_modern_device *mdev, in
|
||||
length, offset, bar);
|
||||
return p;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(vp_modern_map_capability);
|
||||
|
||||
/**
|
||||
* virtio_pci_find_capability - walk capabilities to find device info.
|
||||
|
@ -99,11 +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 idx);
|
||||
u16 vp_modern_get_num_queues(struct virtio_pci_modern_device *mdev);
|
||||
void __iomem *vp_modern_map_capability(struct virtio_pci_modern_device *mdev, int off,
|
||||
size_t minlen,
|
||||
u32 align,
|
||||
u32 start, u32 size,
|
||||
size_t *len);
|
||||
void *vp_modern_map_vq_notify(struct virtio_pci_modern_device *mdev,
|
||||
u16 index);
|
||||
int vp_modern_probe(struct virtio_pci_modern_device *mdev);
|
||||
|
Loading…
Reference in New Issue
Block a user