[PATCH 1/3] tools/virtio: add device-id compat header for virtio
From: rom.wang
Date: Tue Aug 04 2026 - 04:10:00 EST
From: Yufeng Wang <wangyufeng@xxxxxxxxxx>
mod_devicetable.h was split into per-subsystem headers under
include/linux/device-id/ (commit ad428f5811bd "mod_devicetable.h: Split
into per subsystem headers"), and include/linux/virtio.h now includes
<linux/device-id/virtio.h>.
The tools/virtio compat layer has no counterpart for this new include, so
building vhost_net_test fails:
../../include/linux/virtio.h:10:10: fatal error: linux/device-id/virtio.h: No such file or directory
10 | #include <linux/device-id/virtio.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Add tools/virtio/linux/device-id/virtio.h, which includes the real
header, matching how the existing virtio.h compat shim reaches the
kernel's include/linux/virtio.h.
Signed-off-by: Yufeng Wang <wangyufeng@xxxxxxxxxx>
---
tools/virtio/linux/device-id/virtio.h | 1 +
1 file changed, 1 insertion(+)
create mode 100644 tools/virtio/linux/device-id/virtio.h
diff --git a/tools/virtio/linux/device-id/virtio.h b/tools/virtio/linux/device-id/virtio.h
new file mode 100644
index 000000000000..18e3338158eb
--- /dev/null
+++ b/tools/virtio/linux/device-id/virtio.h
@@ -0,0 +1 @@
+#include <../../include/linux/device-id/virtio.h>
--
2.34.1
No virus found
Checked by Hillstone Network AntiVirus