[PATCH 1/2] tools/virtio: add a shim for linux/device-id/virtio.h

From: Liam R. Howlett (Google)

Date: Mon Oct 19 2026 - 23:31:00 EST


include/linux/virtio.h takes struct virtio_device_id from
<linux/device-id/virtio.h>, which the tools build cannot find.

Add a shim for it beside the others, pointing at the real header.

Fixes: ecca1d63c1ea ("Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (headers)")
Signed-off-by: Liam R. Howlett (Google) <liam@xxxxxxxxxxxxx>
---
tools/virtio/linux/device-id/virtio.h | 2 ++
1 file changed, 2 insertions(+)
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 0000000000000..3c3e8c514c8d4
--- /dev/null
+++ b/tools/virtio/linux/device-id/virtio.h
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <../../include/linux/device-id/virtio.h>
--
2.47.3