]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
virtio: make it self-contained
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Dec 2025 18:31:52 +0000 (13:31 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Dec 2025 13:02:55 +0000 (08:02 -0500)
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>
include/linux/virtio.h

index 132a474e59140aab0484895a524b1c10b60e0ca0..3626eb6947282a2a3b65ca4515f2edf8087333c4 100644 (file)
@@ -13,6 +13,8 @@
 #include <linux/completion.h>
 #include <linux/virtio_features.h>
 
+struct module;
+
 /**
  * struct virtqueue - a queue to register buffers for sending or receiving.
  * @list: the chain of virtqueues for this device