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 7C6E9CF9C5B for ; Mon, 23 Sep 2024 10:07:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssfyo-00086e-L8; Mon, 23 Sep 2024 06:07:42 -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 1ssfyj-0007sY-Fb; Mon, 23 Sep 2024 06:07:37 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ssfyh-0002io-UV; Mon, 23 Sep 2024 06:07:37 -0400 Received: from zero.eik.bme.hu (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 6AE734E601D; Mon, 23 Sep 2024 12:07:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at eik.bme.hu Received: from zero.eik.bme.hu ([127.0.0.1]) by zero.eik.bme.hu (zero.eik.bme.hu [127.0.0.1]) (amavisd-new, port 10028) with ESMTP id ZXxhw-gNctx1; Mon, 23 Sep 2024 12:07:31 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 781D44E600E; Mon, 23 Sep 2024 12:07:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 7583B746F60; Mon, 23 Sep 2024 12:07:31 +0200 (CEST) Date: Mon, 23 Sep 2024 12:07:31 +0200 (CEST) From: BALATON Zoltan To: Bernhard Beschow cc: qemu-devel@nongnu.org, Hanna Reitz , qemu-ppc@nongnu.org, Kevin Wolf , Corey Minyard , =?ISO-8859-15?Q?Philippe_Mathieu-Daud=E9?= , Paolo Bonzini , Alex Williamson , Jason Wang , Daniel Henrique Barboza , qemu-block@nongnu.org, Nicholas Piggin , Bin Meng , =?ISO-8859-15?Q?C=E9dric_Le_Goater?= Subject: Re: [PATCH 03/23] hw/ppc/e500: Prefer QOM cast In-Reply-To: <20240923093016.66437-4-shentey@gmail.com> Message-ID: References: <20240923093016.66437-1-shentey@gmail.com> <20240923093016.66437-4-shentey@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Mon, 23 Sep 2024, Bernhard Beschow wrote: > Signed-off-by: Bernhard Beschow Reviewed-by: BALATON Zoltan > --- > hw/ppc/e500.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c > index f68779a1ea..32996c188e 100644 > --- a/hw/ppc/e500.c > +++ b/hw/ppc/e500.c > @@ -1008,7 +1008,7 @@ void ppce500_init(MachineState *machine) > sysbus_connect_irq(s, 0, qdev_get_gpio_in(mpicdev, MPC8544_I2C_IRQ)); > memory_region_add_subregion(ccsr_addr_space, MPC8544_I2C_REGS_OFFSET, > sysbus_mmio_get_region(s, 0)); > - i2c = (I2CBus *)qdev_get_child_bus(dev, "i2c"); > + i2c = I2C_BUS(qdev_get_child_bus(dev, "i2c")); > i2c_slave_create_simple(i2c, "ds1338", RTC_REGS_OFFSET); > > /* eSDHC */ > @@ -1057,7 +1057,7 @@ void ppce500_init(MachineState *machine) > memory_region_add_subregion(ccsr_addr_space, MPC8544_PCI_REGS_OFFSET, > sysbus_mmio_get_region(s, 0)); > > - pci_bus = (PCIBus *)qdev_get_child_bus(dev, "pci.0"); > + pci_bus = PCI_BUS(qdev_get_child_bus(dev, "pci.0")); > if (!pci_bus) > printf("couldn't create PCI controller!\n"); > >