Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio_ring: add a struct device forward declaration

The virtio_ring header file uses the struct device without a forward
declaration.

Signed-off-by: Shunsuke Mie <mie@igel.co.jp>
Message-Id: <20230417022037.917668-1-mie@igel.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Shunsuke Mie and committed by
Michael S. Tsirkin
38fc29ea abebb162

+1
+1
include/linux/virtio_ring.h
··· 58 58 59 59 struct virtio_device; 60 60 struct virtqueue; 61 + struct device; 61 62 62 63 /* 63 64 * Creates a virtqueue and allocates the descriptor ring. If