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

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>

+2
+2
tools/virtio/linux/module.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/export.h> 3 3 4 + struct module; 5 + 4 6 #define MODULE_LICENSE(__MODULE_LICENSE_value) \ 5 7 static __attribute__((unused)) const char *__MODULE_LICENSE_name = \ 6 8 __MODULE_LICENSE_value