Skip to content
Snippets Groups Projects
Commit 75bfa81b authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio_ring: mark vring_dma_dev inline


This inline function is unused on configurations
where dma_map/unmap are empty macros.

Make the function inline to avoid gcc errors because
of an unused static function.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 678ff27d
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,7 @@ static bool vring_use_dma_api(struct virtio_device *vdev) ...@@ -167,7 +167,7 @@ static bool vring_use_dma_api(struct virtio_device *vdev)
* making all of the arch DMA ops work on the vring device itself * making all of the arch DMA ops work on the vring device itself
* is a mess. For now, we use the parent device for DMA ops. * is a mess. For now, we use the parent device for DMA ops.
*/ */
static struct device *vring_dma_dev(const struct vring_virtqueue *vq) static inline struct device *vring_dma_dev(const struct vring_virtqueue *vq)
{ {
return vq->vq.vdev->dev.parent; return vq->vq.vdev->dev.parent;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment