[PATCH 04/14] tools/virtio: add struct module forward declaration

Michael S. Tsirkin posted 14 patches 2 weeks ago
[PATCH 04/14] tools/virtio: add struct module forward declaration
Posted by Michael S. Tsirkin 2 weeks ago
Declarate struct module in our linux/module.h stub.

Created using Cursor CLI.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 tools/virtio/linux/module.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/virtio/linux/module.h b/tools/virtio/linux/module.h
index b91681fc1571..b842ae9d870c 100644
--- a/tools/virtio/linux/module.h
+++ b/tools/virtio/linux/module.h
@@ -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
-- 
MST