* [PATCH 0/2] tools: Fix tools/virtio test build
@ 2026-06-18 9:56 Yichong Chen
2026-06-18 12:04 ` Michael S. Tsirkin
0 siblings, 1 reply; 4+ messages in thread
From: Yichong Chen @ 2026-06-18 9:56 UTC (permalink / raw)
To: mst, jasowang
Cc: xuanzhuo, eperezma, rppt, ljs, akpm, virtualization, linux-kernel,
chenyichong
This series fixes build failures hit by:
make -C tools/virtio test
Patch 1 adds tools/virtio compatibility definitions needed by
recent virtio headers when building vhost_net_test.
Patch 2 makes tools/include/linux/overflow.h include stdint.h
for SIZE_MAX, which is used by its size helper functions.
With the series applied, make -C tools/virtio test builds
virtio_test, vringh_test and vhost_net_test successfully.
Yichong Chen (2):
tools/virtio: Add missing compat definitions for vhost_net_test
tools/include: Include stdint.h for SIZE_MAX in overflow.h
tools/include/linux/overflow.h | 2 +
tools/virtio/linux/completion.h | 9 +++++
tools/virtio/linux/device.h | 1 +
tools/virtio/linux/dma-mapping.h | 1 +
tools/virtio/linux/mod_devicetable.h | 14 +++++++
tools/virtio/linux/slab.h | 4 ++
tools/virtio/linux/virtio_features.h | 56 ++++++++++++++++++++++++++++
7 files changed, 87 insertions(+)
create mode 100644 tools/virtio/linux/completion.h
create mode 100644 tools/virtio/linux/mod_devicetable.h
create mode 100644 tools/virtio/linux/virtio_features.h
--
2.51.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] tools: Fix tools/virtio test build
2026-06-18 9:56 [PATCH 0/2] tools: Fix tools/virtio test build Yichong Chen
@ 2026-06-18 12:04 ` Michael S. Tsirkin
2026-06-22 7:01 ` Yichong Chen
0 siblings, 1 reply; 4+ messages in thread
From: Michael S. Tsirkin @ 2026-06-18 12:04 UTC (permalink / raw)
To: Yichong Chen
Cc: jasowang, xuanzhuo, eperezma, rppt, ljs, akpm, virtualization,
linux-kernel
On Thu, Jun 18, 2026 at 05:56:40PM +0800, Yichong Chen wrote:
> This series fixes build failures hit by:
>
> make -C tools/virtio test
>
> Patch 1 adds tools/virtio compatibility definitions needed by
> recent virtio headers when building vhost_net_test.
>
> Patch 2 makes tools/include/linux/overflow.h include stdint.h
> for SIZE_MAX, which is used by its size helper functions.
>
> With the series applied, make -C tools/virtio test builds
> virtio_test, vringh_test and vhost_net_test successfully.
>
> Yichong Chen (2):
> tools/virtio: Add missing compat definitions for vhost_net_test
> tools/include: Include stdint.h for SIZE_MAX in overflow.h
which commit is this on top of?
> tools/include/linux/overflow.h | 2 +
> tools/virtio/linux/completion.h | 9 +++++
> tools/virtio/linux/device.h | 1 +
> tools/virtio/linux/dma-mapping.h | 1 +
> tools/virtio/linux/mod_devicetable.h | 14 +++++++
> tools/virtio/linux/slab.h | 4 ++
> tools/virtio/linux/virtio_features.h | 56 ++++++++++++++++++++++++++++
> 7 files changed, 87 insertions(+)
> create mode 100644 tools/virtio/linux/completion.h
> create mode 100644 tools/virtio/linux/mod_devicetable.h
> create mode 100644 tools/virtio/linux/virtio_features.h
>
> --
> 2.51.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] tools: Fix tools/virtio test build
2026-06-18 12:04 ` Michael S. Tsirkin
@ 2026-06-22 7:01 ` Yichong Chen
2026-06-22 11:54 ` Michael S. Tsirkin
0 siblings, 1 reply; 4+ messages in thread
From: Yichong Chen @ 2026-06-22 7:01 UTC (permalink / raw)
To: mst
Cc: akpm, chenyichong, eperezma, jasowang, linux-kernel, ljs, rppt,
virtualization, xuanzhuo
Hi Michael,
I checked the history again. The tree was based on v7.1, but I had
unrelated local commits on top when I generated the series.
I rechecked this on a clean v7.1 tree:
8cd9520d35a6 ("Linux 7.1")
The build failure is still reproducible with:
make -C tools/virtio test
The first failure is:
include/linux/virtio.h:10:10: fatal error:
linux/mod_devicetable.h: No such file or directory
The two patches also apply cleanly on top of v7.1 and make
the tools/virtio test target build virtio_test, vringh_test and
vhost_net_test.
I can resend a v2 based on v7.1 with a base-commit if you prefer.
Thanks,
Yichong
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] tools: Fix tools/virtio test build
2026-06-22 7:01 ` Yichong Chen
@ 2026-06-22 11:54 ` Michael S. Tsirkin
0 siblings, 0 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2026-06-22 11:54 UTC (permalink / raw)
To: Yichong Chen
Cc: akpm, eperezma, jasowang, linux-kernel, ljs, rppt, virtualization,
xuanzhuo
On Mon, Jun 22, 2026 at 03:01:13PM +0800, Yichong Chen wrote:
> Hi Michael,
>
> I checked the history again. The tree was based on v7.1, but I had
> unrelated local commits on top when I generated the series.
>
> I rechecked this on a clean v7.1 tree:
>
> 8cd9520d35a6 ("Linux 7.1")
>
> The build failure is still reproducible with:
>
> make -C tools/virtio test
>
> The first failure is:
>
> include/linux/virtio.h:10:10: fatal error:
> linux/mod_devicetable.h: No such file or directory
>
> The two patches also apply cleanly on top of v7.1 and make
> the tools/virtio test target build virtio_test, vringh_test and
> vhost_net_test.
>
> I can resend a v2 based on v7.1 with a base-commit if you prefer.
>
> Thanks,
> Yichong
Hello, thanks for the report!
the commit to try is 8cb2c9285e4ce9154f45fb15633ebd45dfd8d9cf - that is
not in 7.1.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-06-22 11:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 9:56 [PATCH 0/2] tools: Fix tools/virtio test build Yichong Chen
2026-06-18 12:04 ` Michael S. Tsirkin
2026-06-22 7:01 ` Yichong Chen
2026-06-22 11:54 ` Michael S. Tsirkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox