From nobody Mon Feb 9 23:39:27 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=1663936173; cv=none; d=zohomail.com; s=zohoarc; b=EM/oeX5K4u4fRoeoP0wgJBeHj3F7hksQqGQYKmi0FgR7Wz6P4KjxOaho9HRx6R2uAx2cb4YEDGBM4q4x3+Z57HrY+eY4x6qdu4KVwIYJwsN2Vo6elSsQt0ObQ/raNUyp1k09yxVa95tZ5g/zZNoXHdfq3m6PGliK5Hy+wYYHB18= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663936173; 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=M7P9/8xejzoLZcu/tfGY2sj5CXpWf4HB6MWxdifYEUc=; b=RchAGFPwKSkH2WB4YkH0+Ji0Dm1HnFXJd1F7LO0w14iNP3G6erGVhPSBf42b+kwkQOIGP3qVXO1k/emVJBKadPELGjcGan+7ME4N3b/aAv6lE8O+IKZgfgEdZVQqbflVKF79yG25YroQcKZjALyVl/5iRAPCnvmplOUMWUB9jwk= 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 1663936173060393.52757984989387; Fri, 23 Sep 2022 05:29:33 -0700 (PDT) Received: from localhost ([::1]:44040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obhoB-0002Nz-PC for importer@patchew.org; Fri, 23 Sep 2022 08:29:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obhME-0001ls-St for qemu-devel@nongnu.org; Fri, 23 Sep 2022 08:00:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:55751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obhMC-0000FF-3d for qemu-devel@nongnu.org; Fri, 23 Sep 2022 08:00:38 -0400 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-360-c6HX2ZJAMxerV-Q3dGna6Q-1; Fri, 23 Sep 2022 08:00:27 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 86299800186; Fri, 23 Sep 2022 12:00:27 +0000 (UTC) Received: from blackfin.pond.sub.org (unknown [10.39.192.163]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 58C05140EBF3; Fri, 23 Sep 2022 12:00:27 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id 24D3F21E6901; Fri, 23 Sep 2022 14:00:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663934435; 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=M7P9/8xejzoLZcu/tfGY2sj5CXpWf4HB6MWxdifYEUc=; b=ApCsHI80JTI1SK8kFREWJzS65Iw8vYBOPM2d/wwEFHFZZKoisR+FWf43sL0DBaxGvKw+v5 D1QQ99bpYWx6O3gpUoDL23SXH1LTUpbWy6CA9pbmagiv06N3g8V4tciXorn9sc1tfemSV/ Xr5leIasdh6VwgHjHz9pE8vVx5589bA= X-MC-Unique: c6HX2ZJAMxerV-Q3dGna6Q-1 From: Markus Armbruster To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org Subject: [PATCH 1/3] hw/core: Tidy up unnecessary casting away of const Date: Fri, 23 Sep 2022 14:00:23 +0200 Message-Id: <20220923120025.448759-2-armbru@redhat.com> In-Reply-To: <20220923120025.448759-1-armbru@redhat.com> References: <20220923120025.448759-1-armbru@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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.133.124; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1663936174630100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/core/sysbus-fdt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/core/sysbus-fdt.c b/hw/core/sysbus-fdt.c index edb0c49b19..eebcd28f9a 100644 --- a/hw/core/sysbus-fdt.c +++ b/hw/core/sysbus-fdt.c @@ -299,7 +299,8 @@ static int add_amd_xgbe_fdt_node(SysBusDevice *sbdev, v= oid *opaque) void *guest_fdt =3D data->fdt, *host_fdt; const void *r; int i, prop_len; - uint32_t *irq_attr, *reg_attr, *host_clock_phandles; + uint32_t *irq_attr, *reg_attr; + const uint32_t *host_clock_phandles; uint64_t mmio_base, irq_number; uint32_t guest_clock_phandles[2]; =20 @@ -339,7 +340,7 @@ static int add_amd_xgbe_fdt_node(SysBusDevice *sbdev, v= oid *opaque) error_report("%s clocks property should contain 2 handles", __func= __); exit(1); } - host_clock_phandles =3D (uint32_t *)r; + host_clock_phandles =3D r; guest_clock_phandles[0] =3D qemu_fdt_alloc_phandle(guest_fdt); guest_clock_phandles[1] =3D qemu_fdt_alloc_phandle(guest_fdt); =20 --=20 2.37.2