From nobody Sat May 4 10:56:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1554721876988387.90859540017266; Mon, 8 Apr 2019 04:11:16 -0700 (PDT) Received: from localhost ([127.0.0.1]:51210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDSBG-0001ti-1g for importer@patchew.org; Mon, 08 Apr 2019 07:11:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDS9a-0000wA-K7 for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDS9Z-0001mf-NM for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36008) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDS9X-0001lK-Lk for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:29 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DA12C3086272; Mon, 8 Apr 2019 11:09:26 +0000 (UTC) Received: from thuth.com (ovpn-116-50.ams2.redhat.com [10.36.116.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id 84840177B6; Mon, 8 Apr 2019 11:09:25 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Mon, 8 Apr 2019 13:09:18 +0200 Message-Id: <20190408110920.30119-2-thuth@redhat.com> In-Reply-To: <20190408110920.30119-1-thuth@redhat.com> References: <20190408110920.30119-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Mon, 08 Apr 2019 11:09:26 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 1/3] tests/libqos: fix usage of bool in pci-pc.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Paolo Bonzini , Jafar Abdi , dgilbert@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Jafar Abdi Clean up wrong usage of FALSE and TRUE in places that use "bool" from stdbo= ol.h. FALSE and TRUE (with capital letters) are the constants defined by glib for being used with the "gboolean" type of glib. But some parts of the code als= o use TRUE and FALSE for variables that are declared as "bool" (the type from ). Signed-off-by: Jafar Abdi Reviewed-by: Eric Blake Reviewed-by: Thomas Huth Message-Id: <1553351197-14581-3-git-send-email-cafer.abdi@gmail.com> Signed-off-by: Thomas Huth --- tests/libqos/pci-pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libqos/pci-pc.c b/tests/libqos/pci-pc.c index 4ab16facf2..407d8aff78 100644 --- a/tests/libqos/pci-pc.c +++ b/tests/libqos/pci-pc.c @@ -125,7 +125,7 @@ void qpci_init_pc(QPCIBusPC *qpci, QTestState *qts, QGu= estAllocator *alloc) assert(qts); =20 /* tests can use pci-bus */ - qpci->bus.has_buggy_msi =3D FALSE; + qpci->bus.has_buggy_msi =3D false; =20 qpci->bus.pio_readb =3D qpci_pc_pio_readb; qpci->bus.pio_readw =3D qpci_pc_pio_readw; --=20 2.21.0 From nobody Sat May 4 10:56:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 155472197073626.019308487865374; Mon, 8 Apr 2019 04:12:50 -0700 (PDT) Received: from localhost ([127.0.0.1]:51224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDSCk-0003EX-PY for importer@patchew.org; Mon, 08 Apr 2019 07:12:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDS9b-0000wk-L5 for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDS9a-0001mw-2r for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49408) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDS9Z-0001lx-R6 for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:30 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7DC22249; Mon, 8 Apr 2019 11:09:28 +0000 (UTC) Received: from thuth.com (ovpn-116-50.ams2.redhat.com [10.36.116.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2CB58177B6; Mon, 8 Apr 2019 11:09:27 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Mon, 8 Apr 2019 13:09:19 +0200 Message-Id: <20190408110920.30119-3-thuth@redhat.com> In-Reply-To: <20190408110920.30119-1-thuth@redhat.com> References: <20190408110920.30119-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 08 Apr 2019 11:09:28 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 2/3] tests/libqos: fix usage of bool in pci-spapr.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Paolo Bonzini , Jafar Abdi , dgilbert@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Jafar Abdi Clean up wrong usage of FALSE and TRUE in places that use "bool" from stdbo= ol.h. FALSE and TRUE (with capital letters) are the constants defined by glib for being used with the "gboolean" type of glib. But some parts of the code als= o use TRUE and FALSE for variables that are declared as "bool" (the type from ). Signed-off-by: Jafar Abdi Reviewed-by: Eric Blake Reviewed-by: Thomas Huth Acked-by: David Gibson Message-Id: <1553351197-14581-4-git-send-email-cafer.abdi@gmail.com> Signed-off-by: Thomas Huth --- tests/libqos/pci-spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libqos/pci-spapr.c b/tests/libqos/pci-spapr.c index 6925925997..58ba27ae6d 100644 --- a/tests/libqos/pci-spapr.c +++ b/tests/libqos/pci-spapr.c @@ -156,7 +156,7 @@ void qpci_init_spapr(QPCIBusSPAPR *qpci, QTestState *qt= s, assert(qts); =20 /* tests cannot use spapr, needs to be fixed first */ - qpci->bus.has_buggy_msi =3D TRUE; + qpci->bus.has_buggy_msi =3D true; =20 qpci->alloc =3D alloc; =20 --=20 2.21.0 From nobody Sat May 4 10:56:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1554721884221984.3480150411892; Mon, 8 Apr 2019 04:11:24 -0700 (PDT) Received: from localhost ([127.0.0.1]:51212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDSBJ-0001zf-2q for importer@patchew.org; Mon, 08 Apr 2019 07:11:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDS9e-0000y3-B2 for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDS9d-0001p0-Dv for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50596) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDS9b-0001n7-FJ for qemu-devel@nongnu.org; Mon, 08 Apr 2019 07:09:31 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 293F488AAC; Mon, 8 Apr 2019 11:09:30 +0000 (UTC) Received: from thuth.com (ovpn-116-50.ams2.redhat.com [10.36.116.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id C61BB1A90F; Mon, 8 Apr 2019 11:09:28 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Mon, 8 Apr 2019 13:09:20 +0200 Message-Id: <20190408110920.30119-4-thuth@redhat.com> In-Reply-To: <20190408110920.30119-1-thuth@redhat.com> References: <20190408110920.30119-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 08 Apr 2019 11:09:30 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 3/3] test qgraph.c: Fix segs due to out of scope default X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Paolo Bonzini , Jafar Abdi , dgilbert@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" The test uses the trick: if (!opts) { opts =3D &(QOSGraph...Options) { }; } in a couple of places, however the temporary created by the &() {} goes out of scope at the bottom of the if, and results in a seg or assert when opts-> fields are used (on fedora 30's gcc 9). Fixes: fc281c802022cb3a73a5 Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Eric Blake Message-Id: <20190405184037.16799-1-dgilbert@redhat.com> Signed-off-by: Thomas Huth --- tests/libqos/qgraph.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/libqos/qgraph.c b/tests/libqos/qgraph.c index 122efc1b7b..b149caaaa9 100644 --- a/tests/libqos/qgraph.c +++ b/tests/libqos/qgraph.c @@ -77,6 +77,7 @@ static void add_edge(const char *source, const char *dest, { char *key; QOSGraphEdgeList *list =3D g_hash_table_lookup(edge_table, source); + QOSGraphEdgeOptions def_opts =3D { }; =20 if (!list) { list =3D g_new0(QOSGraphEdgeList, 1); @@ -85,7 +86,7 @@ static void add_edge(const char *source, const char *dest, } =20 if (!opts) { - opts =3D &(QOSGraphEdgeOptions) { }; + opts =3D &def_opts; } =20 QOSGraphEdge *edge =3D g_new0(QOSGraphEdge, 1); @@ -590,9 +591,10 @@ void qos_add_test(const char *name, const char *interf= ace, { QOSGraphNode *node; char *test_name =3D g_strdup_printf("%s-tests/%s", interface, name);; + QOSGraphTestOptions def_opts =3D { }; =20 if (!opts) { - opts =3D &(QOSGraphTestOptions) { }; + opts =3D &def_opts; } node =3D create_node(test_name, QNODE_TEST); node->u.test.function =3D test_func; --=20 2.21.0