From nobody Sat May 30 17:44:03 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1778498426; cv=none; d=zohomail.com; s=zohoarc; b=c2ENkmi2wFbnLEIcpoCXI7gJGl+lTfh/riK9bmpbg07p1bucKGMgzgQdjwdCQd4Hg1g0bwyRjN+msJ6tYtBkXShVdYVIqZlm4vEteTxQ9krsCE2VKxr7GRialVSEXJlAzDj8QcMnFAa4tM3oSjlnMFilecWswXyKxYQlhD0T938= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1778498426; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jJjaqcLh7BKQ9zWin1zl9knZV/QN1mIwsQrNRMfmPtE=; b=TdE3pNZzgYhqEv2zDwB5ymjqVjZiGB/ExGa0bsfCuGatXbwnhmNtKBi3ps/FuhZOsgsmfgpw6PzGs/C/daYDaOVdx4qsyND8bEAeahEOg1utEZg70OIziYODf524Eo5qkmCzBfUxn32BiAEdnTyoVpg2Vcnf5zzx/MJvz0FPpsk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1778498426047334.2150345874983; Mon, 11 May 2026 04:20:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wMOfs-0007EL-Th; Mon, 11 May 2026 07:19:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wMOfX-0007Cq-Go for qemu-devel@nongnu.org; Mon, 11 May 2026 07:19:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wMOfV-00010T-Iv for qemu-devel@nongnu.org; Mon, 11 May 2026 07:19:27 -0400 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-633-w0ZqWJVsNXC4b2imdPV3hA-1; Mon, 11 May 2026 07:19:20 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 908A4180047F; Mon, 11 May 2026 11:19:18 +0000 (UTC) Received: from corto.redhat.com (unknown [10.44.49.156]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8A5F019560A6; Mon, 11 May 2026 11:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778498363; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jJjaqcLh7BKQ9zWin1zl9knZV/QN1mIwsQrNRMfmPtE=; b=TRRrplhjQWSTIYLCBU3t8nXBh35cFiWkp1shyW7cqvckusjrP/VxGA5epvJJlWZU09I8ZM 3DAxhUnjCIr1uXsl8eO4/V/IZ5lfGMQARpmbIc9Ygj/jOhnqLm8oYE3HaoEZMdfWQSNZ3p ANhNWP1owTmgGY7oNNgtZ8lRrmQUm6k= X-MC-Unique: w0ZqWJVsNXC4b2imdPV3hA-1 X-Mimecast-MFC-AGG-ID: w0ZqWJVsNXC4b2imdPV3hA_1778498359 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Paolo Bonzini , Cornelia Huck , Song Gao , Avihai Horon , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH] update-linux-headers: Inject VIRTIO_RING_NO_LEGACY in virtio_ring.h Date: Mon, 11 May 2026 13:19:13 +0200 Message-ID: <20260511111913.3327672-1-clg@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=clg@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.445, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1778498430392158500 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. Signed-off-by: C=C3=A9dric Le Goater Acked-by: Michael S. Tsirkin --- scripts/update-linux-headers.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers= .sh index da367acee790657e33c71c10bc118b085774f45d..3c3a0e9394d277766e613dd5ef4= e9c7407ec0033 100755 --- a/scripts/update-linux-headers.sh +++ b/scripts/update-linux-headers.sh @@ -104,6 +104,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_LE= GACY' \ "$f" > "$to/$header"; } =20 --=20 2.54.0