mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Liam R. Howlett (Google)" <liam@infradead.org>
To: "Michael S . Tsirkin" <mst@redhat.com>,
	"Jason Wang" <jasowangio@gmail.com>,
	"Eugenio Pérez" <eperezma@redhat.com>
Cc: "Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
	virtualization@lists.linux.dev, linux-kernel@vger.kernel.org,
	"Liam R. Howlett (Google)" <liam@infradead.org>
Subject: [PATCH 1/2] tools/virtio: add a shim for linux/device-id/virtio.h
Date: Mon, 19 Oct 2026 23:29:57 -0400	[thread overview]
Message-ID: <20261020032958.1930203-2-liam@infradead.org> (raw)
In-Reply-To: <20261020032958.1930203-1-liam@infradead.org>

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@infradead.org>
---
 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


  reply	other threads:[~2026-10-20  3:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-20  3:29 [PATCH 0/2] tools/virtio: fix the build and the posix_memalign() checks Liam R. Howlett (Google)
2026-10-20  3:29 ` Liam R. Howlett (Google) [this message]
2026-10-20  3:29 ` [PATCH 2/2] tools/virtio: check posix_memalign() for failure Liam R. Howlett (Google)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261020032958.1930203-2-liam@infradead.org \
    --to=liam@infradead.org \
    --cc=eperezma@redhat.com \
    --cc=jasowangio@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=u.kleine-koenig@baylibre.com \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®