mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
678ff27d25
commit
75bfa81bf0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue