tools/virtio: add struct module forward declaration

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>
This commit is contained in:
Michael S. Tsirkin
2025-12-04 12:22:32 -05:00
parent 16fe720f1d
commit 42059e68ea

View File

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