]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools/virtio: add struct module forward declaration
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Dec 2025 17:22:32 +0000 (12:22 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Dec 2025 13:02:56 +0000 (08:02 -0500)
Declarate struct module in our linux/module.h stub.

Created using Cursor CLI.

Message-ID: <c01b8d24159664cc8c49354088efa342ae9e7321.1764873799.git.mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/linux/module.h

index b91681fc15718126936ec4bd7b6f8a709433cbc7..b842ae9d870cec854829c852a66140a5799c6621 100644 (file)
@@ -1,6 +1,8 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #include <linux/export.h>
 
+struct module;
+
 #define MODULE_LICENSE(__MODULE_LICENSE_value) \
        static __attribute__((unused)) const char *__MODULE_LICENSE_name = \
                __MODULE_LICENSE_value