From nobody Mon Dec 15 09:37:48 2025 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=1745840912; cv=none; d=zohomail.com; s=zohoarc; b=YrvUJ6dHd+snra6xw1bVjZvgNU9dWDa+cBRGPrf2Qut6v61yJ1uMXjuaVx4n+KR+xXRMSQhrsBHPZ4iP2t0rpMnemdC1cNbiFia81Lzeb8PmuzHBAMFznCjJh+HJ55JPdCZX5COhm8th3ob0LYWgaNtb7vQUavD33l5KgbQ0Q4A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1745840912; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=dZI3I2cB5CKDvY8VbW4Fypjms57OafNYN3AVz0ywbw0=; b=IzLn42riEq/NY5ENEkIvxCz6nMnpVuqLBLmLfSU1JHLhJtz7ZpxxD0uG17/78KObjpQAk7d0FaJrw3B2oNqCM/IkWZG1WO3//8oTLH/JmIBoIb4ZejOcEWK5MaFtx/8YYBfvWp+B9YnxahNssZPnvvgqFrwMqlPntjpEShIFGcw= 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 1745840912322218.04032416567418; Mon, 28 Apr 2025 04:48:32 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id A6C65CEE; Mon, 28 Apr 2025 07:48:31 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 05C1BD3E; Mon, 28 Apr 2025 07:48:00 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id DE70CA99; Mon, 28 Apr 2025 07:47:56 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 65719AEB for ; Mon, 28 Apr 2025 07:47:56 -0400 (EDT) Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-692-GuD3sO_6OtO_mw8FN9O7Aw-1; Mon, 28 Apr 2025 07:47:54 -0400 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DB98B1956096 for ; Mon, 28 Apr 2025 11:47:53 +0000 (UTC) Received: from moe.brq.redhat.com (unknown [10.43.3.236]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 415391956094 for ; Mon, 28 Apr 2025 11:47:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1745840876; 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: in-reply-to:in-reply-to:references:references; bh=XGvH2ji9i4UXlzaJWFXeP6QmMcUJlJatg5uUvrsWYUI=; b=URfQ55+hWCcsz1wuQJVX0XS3b4DF49w1P4ky469NTcBpscaStaTiri+Ea4yc8VdtRq9aNh 69luUr8uOaoAQJCiBj4384kYpFPGHRoSvhJWsibsoFpr+wLu7tkZ8HRJf6BUgzhZId/p7N 0J0MD862vj51pkoUTs79Z7P+iRJYujA= X-MC-Unique: GuD3sO_6OtO_mw8FN9O7Aw-1 X-Mimecast-MFC-AGG-ID: GuD3sO_6OtO_mw8FN9O7Aw_1745840874 To: devel@lists.libvirt.org Subject: [PATCH 1/2] util: Add missing G_NO_INLINE annotation Date: Mon, 28 Apr 2025 13:47:49 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: B2-v9Nk9P9dNNLSp09OGgXUY5yLygbbfghW3UQ52BUw_1745840874 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: XVZUU7K6MPDPIHRSGOS3DI3AS2QGKFQB X-Message-ID-Hash: XVZUU7K6MPDPIHRSGOS3DI3AS2QGKFQB X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: 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: 1745840914123019000 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik There are two functions that are mocked, but are missing required G_NO_INLINE attribute: virFirewallDIsRegistered() and virHostCPUGetPhysAddrSize(). Add it. Signed-off-by: Michal Privoznik Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Peter Krempa --- src/util/virfirewalld.h | 2 +- src/util/virhostcpu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/virfirewalld.h b/src/util/virfirewalld.h index 43803ee89a..2c7d3e22cd 100644 --- a/src/util/virfirewalld.h +++ b/src/util/virfirewalld.h @@ -33,7 +33,7 @@ typedef enum { =20 int virFirewallDGetVersion(unsigned long long *version); int virFirewallDGetBackend(void); -int virFirewallDIsRegistered(void); +int virFirewallDIsRegistered(void) G_NO_INLINE; int virFirewallDGetZones(char ***zones, size_t *nzones); int virFirewallDGetPolicies(char ***policies, size_t *npolicies); bool virFirewallDZoneExists(const char *match); diff --git a/src/util/virhostcpu.h b/src/util/virhostcpu.h index 1f47634c33..92db35232b 100644 --- a/src/util/virhostcpu.h +++ b/src/util/virhostcpu.h @@ -90,7 +90,7 @@ virHostCPUTscInfo *virHostCPUGetTscInfo(void); int virHostCPUGetSignature(char **signature); =20 int virHostCPUGetPhysAddrSize(const virArch hostArch, - unsigned int *size); + unsigned int *size) G_NO_INLINE; =20 int virHostCPUGetHaltPollTime(pid_t pid, unsigned long long *haltPollSuccess, --=20 2.49.0 From nobody Mon Dec 15 09:37:48 2025 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=1745840928; cv=none; d=zohomail.com; s=zohoarc; b=BwTpzNvejQldC3Kw9MoPSaj0VZkWwU3DXdH/zT99Qxjn28JC6LG7Kjj+gHNkCcUf3j8GggaQao6avHDt3kKzwrbFK9r9BMEwmwUcP5SDY5enQRn5+m/JCwi5aYcTo05ub00cS4GQ8ot7dz+WrbBkEw3rqWbREaeq3CVnYVDATRw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1745840928; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=jHmca3oA0CDD/oMmVBkaiH6XQWQnSYwlZvH3GYYFeWA=; b=WxFwPlilcBw8AMAKYvfmOAjnuhTVBtjPBzYfzfnpm2f95rtdGcQFP8ffpmZrjZBASi1hJYuCR3faDWT7Bxunvwb0zHeRbHDK3QIBzlJUuD6zRbsfRNoFcDAuqnhPVcK1sN7K+bZjt5wY3agO8m3yaY/a5RDwuonw6EoNDOyh3zo= 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 1745840928272955.0433809048599; Mon, 28 Apr 2025 04:48:48 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 5D4E3AEB; Mon, 28 Apr 2025 07:48:47 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id C8DFC1186; Mon, 28 Apr 2025 07:48:09 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 7254BB24; Mon, 28 Apr 2025 07:48:04 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id B9BE6C5D for ; Mon, 28 Apr 2025 07:47:59 -0400 (EDT) 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-219-cR0ICXlSOxqTJyFxTn9Oyw-1; Mon, 28 Apr 2025 07:47:55 -0400 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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 EC4C618001CA for ; Mon, 28 Apr 2025 11:47:54 +0000 (UTC) Received: from moe.brq.redhat.com (unknown [10.43.3.236]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 46D9D1956094 for ; Mon, 28 Apr 2025 11:47:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1745840879; 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: in-reply-to:in-reply-to:references:references; bh=prMkiVj3qEnayuSGwvxUvvCNfsQX5LHG8N+xl+RxHvw=; b=PfeezMx6+zNphrv1aCW99bG1GW40927CIMwzfio/GKmNivUY5s1HIqz/IiZTsSxvY+LRUo kHDjEF5d7HAFTCDn6aLJMJvuJvjV3LTDpc4slY3FXyVU3veA3PKz4X2+lSnZy1Dyce7asn RS/hq+MHCLQCr6EVW5DB6y4/uOxk8b8= X-MC-Unique: cR0ICXlSOxqTJyFxTn9Oyw-1 X-Mimecast-MFC-AGG-ID: cR0ICXlSOxqTJyFxTn9Oyw_1745840875 To: devel@lists.libvirt.org Subject: [PATCH 2/2] scripts: Fix reading list of files in mock-noinline.py Date: Mon, 28 Apr 2025 13:47:50 +0200 Message-ID: <78b14d7b976c8312c4d33cf04fcf1406c718a756.1745840836.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: bLyyV-3Lql-463ngA_Dq8eZaTsiRrTnvDCitStWGeCU_1745840875 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: Y2SIUVANSA3DV4WLSSM4RXKFRUUU6VF6 X-Message-ID-Hash: Y2SIUVANSA3DV4WLSSM4RXKFRUUU6VF6 X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: 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: 1745840930146019100 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik The mock-noinline.py script is fed list of files through its stdin, each file on its own line. Unfortunately, the way the script is written does nothing as the trailing newline character prevents any .endswith() match. Strip each line of white spaces. Signed-off-by: Michal Privoznik Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Peter Krempa --- scripts/mock-noinline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/mock-noinline.py b/scripts/mock-noinline.py index ec617bbc2b..77a5ca23e2 100755 --- a/scripts/mock-noinline.py +++ b/scripts/mock-noinline.py @@ -63,7 +63,8 @@ def scan_overrides(filename): mocked[name] =3D "%s:%d" % (filename, lineno) =20 =20 -for filename in sys.stdin.readlines(): +for filename in sys.stdin: + filename =3D filename.rstrip() if filename.endswith(".h"): scan_annotations(filename) elif filename.endswith("mock.c"): --=20 2.49.0