Skip to content

Commit f059588

Browse files
committed
virtio: make it self-contained
virtio.h uses struct module, add a forward declaration to make the header self-contained. Message-ID: <9171b5cac60793eb59ab044c96ee038bf1363bee.1764873799.git.mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent 94fb5e7 commit f059588

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/linux/virtio.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include <linux/completion.h>
1414
#include <linux/virtio_features.h>
1515

16+
struct module;
17+
1618
/**
1719
* struct virtqueue - a queue to register buffers for sending or receiving.
1820
* @list: the chain of virtqueues for this device

0 commit comments

Comments
 (0)