diff options
| author | Cédric Le Goater <clg@redhat.com> | 2026-05-11 13:19:13 +0200 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2026-05-20 15:05:20 +0200 |
| commit | 433b7ecd3861a44557ed7966644539828f24d762 (patch) | |
| tree | e5f32ef87b55b5167dba11a961f52179bc03bd1a /scripts | |
| parent | 706a73473b8c03af7da6bd23df5ff323f0e86ce9 (diff) | |
| download | qemu-433b7ecd3861a44557ed7966644539828f24d762.tar.gz qemu-433b7ecd3861a44557ed7966644539828f24d762.zip | |
update-linux-headers: Inject VIRTIO_RING_NO_LEGACY in virtio_ring.h
The kernel commit 3c4629b68dbe ("virtio: uapi: avoid usage of libc
types") changed the virtio_ring.h header and this breaks the build on
Windows which requires the uintptr_t type to cast from pointer to
integer.
Inject '#define VIRTIO_RING_NO_LEGACY' at the top of the synced header
via the update script after the include guard. This discards the code
section incompatible with Windows.
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260511111913.3327672-1-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/update-linux-headers.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index 386d7a38e7..0dea7c9551 100755 --- a/scripts/update-linux-headers.sh +++ b/scripts/update-linux-headers.sh @@ -103,6 +103,7 @@ cp_portable() { -e 's/__kernel_ulong_t/unsigned long/' \ -e 's/struct ethhdr/struct eth_header/' \ -e '/\#define _LINUX_ETHTOOL_H/a \\n\#include "net/eth.h"' \ + -e '/\#define _LINUX_VIRTIO_RING_H/a \\n\#define VIRTIO_RING_NO_LEGACY' \ "$f" > "$to/$header"; } |
