[PATCH 1/3] tools/virtio: add device-id compat header for virtio

"rom.wang" <[email protected]>
Newsgroups gmane.linux.kernel.virtualization,gmane.comp.emulators.kvm.devel,gmane.linux.network,gmane.linux.kernel
Message-ID <[email protected]>
From: Yufeng Wang <[email protected]>

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 <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.