[PATCH 24.11 1/3] [PATCH 24.11] vhost: fix compile error when without vduse.h
Chengwen Feng
fengchengwen at huawei.com
Tue Nov 25 02:51:28 CET 2025
Fix compile error when don't set VHOST_HAS_VDUSE.
Fixes: 0ea4b51e84ce ("vhost: fix external buffer in VDUSE")
Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
---
lib/vhost/vduse.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vhost/vduse.h b/lib/vhost/vduse.h
index 353f297d5a..e923aeac56 100644
--- a/lib/vhost/vduse.h
+++ b/lib/vhost/vduse.h
@@ -17,7 +17,7 @@ int vduse_device_destroy(const char *path);
#else
static inline int
-vduse_device_create(const char *path, bool compliant_ol_flags, bool extbuf, bool linearbuf);
+vduse_device_create(const char *path, bool compliant_ol_flags, bool extbuf, bool linearbuf)
{
RTE_SET_USED(compliant_ol_flags);
RTE_SET_USED(extbuf);
--
2.17.1
More information about the stable
mailing list