[PATCH] tools/virtio: add missing device-id/virtio.h wrapper header

Subsystems: the rest, virtio core

COLD42d IN LINUX-NEXT

Queued in linux-next as c69023b5e16e on 2026-10-08.

2 messages, 2 authors, 2026-09-09 · open the first message on its own page

[PATCH] tools/virtio: add missing device-id/virtio.h wrapper header

From: Longjun Tang <hidden>
Date: 2026-09-09 09:20:16

From: Longjun Tang <redacted>

Since commit ecca1d63c1ea ("Replace <linux/mod_devicetable.h> by more
specific <linux/device-id/*.h> (headers)"), includes
<linux/device-id/virtio.h> instead of the old <linux/mod_devicetable.h>.
However, tools/virtio/ only had a wrapper for the old mod_devicetable.h,
causing the build to fail with:

    ./../../include/linux/virtio.h:10:10: fatal error: linux/device-id/virtio.h: No such file or directory

Add the missing wrapper header that redirects to
../../include/linux/device-id/virtio.h

Signed-off-by: Longjun Tang <redacted>
---
 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 000000000000..3c3e8c514c8d
--- /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.51.0

Re: [PATCH] tools/virtio: add missing device-id/virtio.h wrapper header

From: sashiko-bot@kernel.org
Date: 2026-09-09 09:26:12

From: Longjun Tang <redacted>

Since commit ecca1d63c1ea ("Replace <linux/mod_devicetable.h> by more
specific <linux/device-id/*.h> (headers)"), includes
<linux/device-id/virtio.h> instead of the old <linux/mod_devicetable.h>.
However, tools/virtio/ only had a wrapper for the old mod_devicetable.h,
causing the build to fail with:

    ./../../include/linux/virtio.h:10:10: fatal error: linux/device-id/virtio.h: No such file or directory

Add the missing wrapper header that redirects to
../../include/linux/device-id/virtio.h

Signed-off-by: Longjun Tang <redacted>
Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260909092000.107827-1-lange_tang@163.com?part=1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help