Skip to contentSkip to conversation

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

PATCH New Longjun Tang 2 participants 2 messages Sep 9 virtio core

lore
Share & tools
lore
#0 lore raw

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

From: Longjun Tang <[email protected]>

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

---
 tools/virtio/linux/device-id/virtio.h | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 tools/virtio/linux/device-id/virtio.h
tools/virtio/linux/device-id/virtio.h new file +2 -0
new file mode 100644
index 000000000000..3c3e8c514c8d
@@ -0,0 +1,2 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <../../include/linux/device-id/virtio.h>
Signature · 1 line
2.51.0
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 8 lines

From: Longjun Tang <[email protected]>

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:

Quoted 6 lines

./../../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

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1