[PATCH 0/2] tools/virtio: fix the build and the posix_memalign() checks
From: Liam R. Howlett (Google)
Date: Mon Oct 19 2026 - 23:30:50 EST
Working on other tools, I came across the fact that posix_memalign()'s
return is not the standard negative error. Scanning the git repo, I
came across the virtio issue with the return. Testing turned out the be
broke as well, so there's a patch to fix testing prior to fixing the
caller.
Liam R. Howlett (Google) (2):
tools/virtio: add a shim for linux/device-id/virtio.h
tools/virtio: check posix_memalign() for failure
tools/virtio/linux/device-id/virtio.h | 2 ++
tools/virtio/linux/kernel.h | 3 ++-
tools/virtio/vhost_net_test.c | 2 +-
tools/virtio/virtio_test.c | 2 +-
4 files changed, 6 insertions(+), 3 deletions(-)
create mode 100644 tools/virtio/linux/device-id/virtio.h
--
2.47.3