From nobody Mon Feb 9 15:10:45 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=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1669896822; cv=none; d=zohomail.com; s=zohoarc; b=VRHAqS4e6LQt5uW/5eA3e1jpxQfeiHyMlmSKsASIkhvUDnsfkCvXqDidBNWHc1gG9XzjVWk5l8/vN9PKTU431F7Tyk0CSi5NC+l/p6lJi99JvVIiPaIemJePJkwq3Ud6aoOAdaUZcainidtiqfzzv/GZKpp5eCHFTdmAzLwSwTM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669896822; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=pURPJ8TNbB3lFBdmzy5ka69deY03W+cS5xx4sJp8TDE=; b=oBL4/R0PTWL4aioFAfG0QNYrcTUSTLl5Er2wEfC94/YvLoTcZfjIFAHH3EhLeVYvfRK+tafmJg1xVQfjNazl3BSAtDmpUkEXmxvWlQoWwBiH/YBrrGJR2Z6MTGnyZSSJH2VodTAtrz1AH0h3wcs07V6+KFdCv0eX5YjkWuh4Lhw= 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=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1669896822915717.2046629918772; Thu, 1 Dec 2022 04:13:42 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0iQB-0004WH-7d; Thu, 01 Dec 2022 07:12:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0iPs-0004Fr-St for qemu-devel@nongnu.org; Thu, 01 Dec 2022 07:11:48 -0500 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 1p0iPl-0008D7-Kw for qemu-devel@nongnu.org; Thu, 01 Dec 2022 07:11:47 -0500 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-113-H5zj7IcQPkWBOTZjQcL_hw-1; Thu, 01 Dec 2022 07:11:37 -0500 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5E96485A588; Thu, 1 Dec 2022 12:11:37 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.39.192.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3180C4A9254; Thu, 1 Dec 2022 12:11:37 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id DCE0121E6930; Thu, 1 Dec 2022 13:11:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669896700; 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: in-reply-to:in-reply-to:references:references; bh=pURPJ8TNbB3lFBdmzy5ka69deY03W+cS5xx4sJp8TDE=; b=NAWVWhsCuHhoQVPA4+Sc8X6CbmT2yhrSb9Otb/S1+3BXPGIu0WHhgVkw4ZRJg5qx086E6e 4cm/Bp2wY5Z/5sbenljzsV6m2MUU17zHc9plDXtwV3iGrg5Tj1IPHLM+7BCenU1bdimkjd fsEhCWPX/ju8xWVcfnRw8fGHhP4M8+Y= X-MC-Unique: H5zj7IcQPkWBOTZjQcL_hw-1 From: Markus Armbruster To: qemu-devel@nongnu.org Cc: mst@redhat.com, marcel.apfelbaum@gmail.com, dgilbert@redhat.com, philmd@linaro.org Subject: [PATCH v2 01/13] pci: Clean up a few things checkpatch.pl would flag later on Date: Thu, 1 Dec 2022 13:11:21 +0100 Message-Id: <20221201121133.3813857-2-armbru@redhat.com> In-Reply-To: <20221201121133.3813857-1-armbru@redhat.com> References: <20221201121133.3813857-1-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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: 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: 1669896824779100003 Fix a few style violations so that checkpatch.pl won't complain when I move this code. Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci/pci.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 2f450f6a72..53ed447115 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -1851,10 +1851,12 @@ static PciBridgeInfo *qmp_query_pci_bridge(PCIDevic= e *dev, PCIBus *bus, range->limit =3D pci_bridge_get_limit(dev, PCI_BASE_ADDRESS_MEM_PREFET= CH); =20 if (dev->config[PCI_SECONDARY_BUS] !=3D 0) { - PCIBus *child_bus =3D pci_find_bus_nr(bus, dev->config[PCI_SECONDA= RY_BUS]); + PCIBus *child_bus =3D pci_find_bus_nr(bus, + dev->config[PCI_SECONDARY_BUS]= ); if (child_bus) { info->has_devices =3D true; - info->devices =3D qmp_query_pci_devices(child_bus, dev->config= [PCI_SECONDARY_BUS]); + info->devices =3D qmp_query_pci_devices(child_bus, + dev->config[PCI_SECONDARY_BUS]= ); } } =20 @@ -2612,8 +2614,9 @@ static void pcibus_dev_print(Monitor *mon, DeviceStat= e *dev, int indent) pci_get_word(d->config + PCI_SUBSYSTEM_ID)); for (i =3D 0; i < PCI_NUM_REGIONS; i++) { r =3D &d->io_regions[i]; - if (!r->size) + if (!r->size) { continue; + } monitor_printf(mon, "%*sbar %d: %s at 0x%"FMT_PCIBUS " [0x%"FMT_PCIBUS"]\n", indent, "", --=20 2.37.3