From nobody Sun Feb 8 21:32:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1770110316; cv=none; d=zohomail.com; s=zohoarc; b=h0fp8zXjPmROPGKWKTxrfE/eOacqjlgF6yPUPb2UVtuVczEIgD7E5TSubGeVawQLnrPo83CTsNDJ5YajePbPLWz+obsYxECtk/RrKQgW0WaiPxSunV0KM9Vw1GqUMRBuS4kd/TWVKhGVOmXsYs2M78u3XJ2oRW3KtcFpGzwAg1o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770110316; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=n7RWqu7J7YRBYT950DZN4zaj0Uur0QNbyk3VIErcUn0=; b=CyHgKPrgQB5BZGZsC0wWwMKISVUy8IwYpzE+ZqbY0WxzjlsM83T5Hth27mekYow0QdunVW8IymJRqb8jjhaS5RdVZLkTFgcbAP3pwNwiFZQ32wFLK/8k3ecdTwfI2AZ4DyuirAVNhbDPiuU5b94XDOw1p0tISYajw0mqN4D58AI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1770110316187691.0265937563754; Tue, 3 Feb 2026 01:18:36 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id F1D37418EC; Tue, 3 Feb 2026 04:18:34 -0500 (EST) Received: from [172.19.199.6] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id DC08D41A55; Tue, 3 Feb 2026 04:17:55 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id D58C941861; Tue, 3 Feb 2026 04:17:51 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 433B23FB97 for ; Tue, 3 Feb 2026 04:17:50 -0500 (EST) Received: from mx-prod-mc-08.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-320-V9KhvRXfNPCTt5ORMRPiEA-1; Tue, 03 Feb 2026 04:17:48 -0500 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7AA111800342 for ; Tue, 3 Feb 2026 09:17:47 +0000 (UTC) Received: from moe (unknown [10.43.3.236]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DA17718002A6 for ; Tue, 3 Feb 2026 09:17:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770110269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n7RWqu7J7YRBYT950DZN4zaj0Uur0QNbyk3VIErcUn0=; b=gNvg6EU/bUNorTghll3Fe0WonRCwVAGB2KvVmpSlgqNSN3V9t7eyEp7UZR8v9B6/iD0FIW AmQpsOz7+cQYn1YECCV6FlafWukBjMDRWnSHXk5Xw7SMvassMjrWmACFlnb7fIEmuAKEGY ZqKv8sYw7XoWz/J/OUTWomb101+RAoM= X-MC-Unique: V9KhvRXfNPCTt5ORMRPiEA-1 X-Mimecast-MFC-AGG-ID: V9KhvRXfNPCTt5ORMRPiEA_1770110267 To: devel@lists.libvirt.org Subject: [PATCH] rpcgen: Pass XDRPROC_T_3ARGS to test_demo.c Date: Tue, 3 Feb 2026 10:17:43 +0100 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: -j5sTfHJlXGFRW75iQjoP_jBsi-Kf0_0Npuww-xipyA_1770110267 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: FWSKY4QMFYWKFCH2QIKOHQWFPTX2JG5E X-Message-ID-Hash: FWSKY4QMFYWKFCH2QIKOHQWFPTX2JG5E X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1770110319432154100 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik In previous commit of v12.0.0-85-g2c66b6d72c we've tried to solve a problem where xdrproc_t is a prototype of a function which takes only two arguments instead of three. See original commit for more info. The fix consists of a config time check and setting XDRPROC_T_3ARGS accordingly (in meson-config.h). This works for nearly all of our code, except rpcgen which is intentionally independent of the rest of the code. Therefore, the macro has to be set extra - by specifying it on the compiler cmd line. Fixes: 2c66b6d72cd48d3cf80f957f55cfb1548feb46c4 Signed-off-by: Michal Privoznik Reviewed-by: Martin Kletzander --- scripts/rpcgen/tests/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/rpcgen/tests/meson.build b/scripts/rpcgen/tests/meson.= build index 057a61433d..4df7471a99 100644 --- a/scripts/rpcgen/tests/meson.build +++ b/scripts/rpcgen/tests/meson.build @@ -4,13 +4,17 @@ rpcgen_tests =3D files([ 'test_parser.py', ]) =20 +xdrproc_flags =3D [] +if conf.has('XDRPROC_T_3ARGS') + xdrproc_flags +=3D [ '-DXDRPROC_T_3ARGS' ] +endif =20 test_demo =3D executable( 'test_demo', [ 'test_demo.c' ], c_args: [ '-Dabs_srcdir=3D"@0@"'.format(meson.current_source_dir()), - ] + cc_flags_relaxed_frame_limit, + ] + cc_flags_relaxed_frame_limit + xdrproc_flags, dependencies: [ xdr_dep, glib_dep ], --=20 2.52.0