From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E4B2CCF9EE for ; Wed, 29 Oct 2025 11:06:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vE403-0000Bs-Ar; Wed, 29 Oct 2025 07:05:56 -0400 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 1vE3zZ-00008h-GM; Wed, 29 Oct 2025 07:05:25 -0400 Received: from [185.176.79.56] (helo=frasgout.his.huawei.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vE3zT-0004Ls-I8; Wed, 29 Oct 2025 07:05:24 -0400 Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4cxPSX68bnz6L4xp; Wed, 29 Oct 2025 19:01:32 +0800 (CST) Received: from dubpeml100005.china.huawei.com (unknown [7.214.146.113]) by mail.maildlp.com (Postfix) with ESMTPS id 4B57114033F; Wed, 29 Oct 2025 19:05:05 +0800 (CST) Received: from localhost (10.203.177.15) by dubpeml100005.china.huawei.com (7.214.146.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 29 Oct 2025 11:05:04 +0000 Date: Wed, 29 Oct 2025 11:05:03 +0000 To: Philippe =?ISO-8859-1?Q?Mathieu-Daud=E9?= CC: , Mark Cave-Ayland , , , , =?ISO-8859-1?Q?Marc-Andr=E9?= Lureau , , , "Michael S. Tsirkin" , Igor Mammedov , Ani Sinha Subject: Re: [PATCH v3 04/25] hw/acpi/cxl: Use proper SysBus accessors Message-ID: <20251029110503.00002021@huawei.com> In-Reply-To: <20251028181300.41475-5-philmd@linaro.org> References: <20251028181300.41475-1-philmd@linaro.org> <20251028181300.41475-5-philmd@linaro.org> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.203.177.15] X-ClientProxiedBy: lhrpeml100012.china.huawei.com (7.191.174.184) To dubpeml100005.china.huawei.com (7.214.146.113) X-Host-Lookup-Failed: Reverse DNS lookup failed for 185.176.79.56 (deferred) Received-SPF: pass client-ip=185.176.79.56; envelope-from=jonathan.cameron@huawei.com; helo=frasgout.his.huawei.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RDNS_NONE=0.793, 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: , Reply-to: Jonathan Cameron From: Jonathan Cameron via Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Tue, 28 Oct 2025 19:12:38 +0100 Philippe Mathieu-Daud=E9 wrote: > SysBusDevice::mmio[] is private data of SysBusDevice, use > sysbus_mmio_get_region() to access it. >=20 > Signed-off-by: Philippe Mathieu-Daud=E9 Acked-by: Jonathan Cameron Thanks, > --- > hw/acpi/cxl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/hw/acpi/cxl.c b/hw/acpi/cxl.c > index 75d5b30bb8b..77c99dfb184 100644 > --- a/hw/acpi/cxl.c > +++ b/hw/acpi/cxl.c > @@ -104,7 +104,7 @@ static void cedt_build_chbs(GArray *table_data, PXBCX= LDev *cxl) > { > PXBDev *pxb =3D PXB_DEV(cxl); > SysBusDevice *sbd =3D SYS_BUS_DEVICE(cxl->cxl_host_bridge); > - struct MemoryRegion *mr =3D sbd->mmio[0].memory; > + MemoryRegion *mr =3D sysbus_mmio_get_region(sbd, 0); > =20 > /* Type */ > build_append_int_noprefix(table_data, 0, 1);