From nobody Fri Nov 7 05:55:25 2025 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 1546889684768446.6438002067696; Mon, 7 Jan 2019 11:34:44 -0800 (PST) Received: from localhost ([127.0.0.1]:59860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggafb-000341-SF for importer@patchew.org; Mon, 07 Jan 2019 14:34:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggabg-0008FT-Tt for qemu-devel@nongnu.org; Mon, 07 Jan 2019 14:30:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggabe-0000Ie-Nr for qemu-devel@nongnu.org; Mon, 07 Jan 2019 14:30:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ggabc-0000Bg-Mc; Mon, 07 Jan 2019 14:30:36 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D9FEE89ACB; Mon, 7 Jan 2019 19:30:34 +0000 (UTC) Received: from localhost (ovpn-116-79.gru2.redhat.com [10.97.116.79]) by smtp.corp.redhat.com (Postfix) with ESMTP id 56FAF5D756; Mon, 7 Jan 2019 19:30:23 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Mon, 7 Jan 2019 17:30:18 -0200 Message-Id: <20190107193020.21744-2-ehabkost@redhat.com> In-Reply-To: <20190107193020.21744-1-ehabkost@redhat.com> References: <20190107193020.21744-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 07 Jan 2019 19:30:35 +0000 (UTC) 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] [PATCH 1/3] spapr: Eliminate SPAPR_PCI_2_7_MMIO_WIN_SIZE macro 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: qemu-ppc@nongnu.org, Stefano Stabellini , Eduardo Habkost , David Hildenbrand , Cornelia Huck , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, "Michael S. Tsirkin" , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Anthony Perard , Paolo Bonzini , David Gibson , xen-devel@lists.xenproject.org, Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The macro is only used in one place, where the purpose of the value is obvious. Eliminate the macro so we don't need to rely on stringify(). Signed-off-by: Eduardo Habkost Acked-by: David Gibson Reviewed-by: Cornelia Huck Reviewed-by: Marc-Andr=C3=A9 Lureau --- include/hw/pci-host/spapr.h | 1 - hw/ppc/spapr.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h index 7c66c3872f..a85a995b6c 100644 --- a/include/hw/pci-host/spapr.h +++ b/include/hw/pci-host/spapr.h @@ -99,7 +99,6 @@ struct sPAPRPHBState { #define SPAPR_PCI_BASE (1ULL << 45) /* 32 TiB */ #define SPAPR_PCI_LIMIT (1ULL << 46) /* 64 TiB */ =20 -#define SPAPR_PCI_2_7_MMIO_WIN_SIZE 0xf80000000 #define SPAPR_PCI_IO_WIN_SIZE 0x10000 =20 #define SPAPR_PCI_MSI_WINDOW 0x40000000000ULL diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 5671608cea..bff42f0adb 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -4225,7 +4225,7 @@ static void spapr_machine_2_7_class_options(MachineCl= ass *mc) { .driver =3D TYPE_SPAPR_PCI_HOST_BRIDGE, .property =3D "mem_win_size", - .value =3D stringify(SPAPR_PCI_2_7_MMIO_WIN_SIZE), + .value =3D "0xf80000000", }, { .driver =3D TYPE_SPAPR_PCI_HOST_BRIDGE, --=20 2.18.0.rc1.1.g3f1ff2140