From nobody Mon Feb 9 13:22:24 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; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1759390623; cv=pass; d=zohomail.com; s=zohoarc; b=AklRCdnz23z0BnQkrE4p+oid7lrraG4fajM/nHq6qAx6KaHK0SnQL5aDzyDbH4LBsJ1YyIViYROUAEsTBiINbOq1NzB0bwLpoZx6bhDf4XNvl1ZeWvzaODldbkOkkE4EKhQZoradklGIDgDTW8LOuqQf2lxBpYpriaKguFHZ7UE= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1759390623; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=sMelwTkH0ReVAXnWxYM6l9gkyJyBrIJ2t58MbtxOWw0=; b=YG7IukVqYNqoCvO+OUELYxdJjCHNlGvek/40aMPDk67pinII28ywedz5SymSZPHhOubbhvV9mrgTc8AwHJmxknR5DAG9ym1JpRTHj9sYJppSuNlZlO3Klmd7re1F5sl85UlJ2WrDIiDkS1g982kjY7MlsejtUIf/aoUetvS3CTA= ARC-Authentication-Results: i=2; 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; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1759390623461458.8003157748403; Thu, 2 Oct 2025 00:37:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v4DqP-0004c4-Hw; Thu, 02 Oct 2025 03:35:17 -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 1v4DqJ-0004Tf-NC; Thu, 02 Oct 2025 03:35:11 -0400 Received: from mail-westus2azlp170120002.outbound.protection.outlook.com ([2a01:111:f403:c007::2] helo=MW6PR02CU001.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v4Dq5-0008HB-83; Thu, 02 Oct 2025 03:35:09 -0400 Received: from MW4PR03CA0327.namprd03.prod.outlook.com (2603:10b6:303:dd::32) by SA0PR12MB7002.namprd12.prod.outlook.com (2603:10b6:806:2c0::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9160.18; Thu, 2 Oct 2025 07:34:40 +0000 Received: from BY1PEPF0001AE18.namprd04.prod.outlook.com (2603:10b6:303:dd:cafe::91) by MW4PR03CA0327.outlook.office365.com (2603:10b6:303:dd::32) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9137.20 via Frontend Transport; Thu, 2 Oct 2025 07:34:40 +0000 Received: from satlexmb08.amd.com (165.204.84.17) by BY1PEPF0001AE18.mail.protection.outlook.com (10.167.242.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9182.15 via Frontend Transport; Thu, 2 Oct 2025 07:34:39 +0000 Received: from Satlexmb09.amd.com (10.181.42.218) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Thu, 2 Oct 2025 00:34:39 -0700 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb09.amd.com (10.181.42.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Thu, 2 Oct 2025 00:34:39 -0700 Received: from XFR-LUMICHEL-L2.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Thu, 2 Oct 2025 00:34:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xlEf3WWeQ/h2m7tXnkLkHZdBm67hZ/5FTQ4UA04Qu6h2QNzN1fHnAwOpYmZ+Uc2POSTqxFB4duWshqzbxSehyf9/jjH3cBz9/gnI49zBktpaxLHvjXuYU8dGv0y6tQkdyVcX8T1nylPh9GkMCGOzFZtrVFzwxIb9sQJS0pjjIeb2vMZPATwB2e56st22AvQVyHDhRzq26bG6UAgRkdq8E0PVkU5FJwnWCXDXbWla3uUj/LBG3Yyqj/0Avg8EJ6rtB/YDDGfh9qEFU4RA3FLN0zvjxPpNAw9ExRg/R0VmSeP8lyqr5orVlbBGitYAdax6xNyFoAp8Urjm7nZWcZWKcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sMelwTkH0ReVAXnWxYM6l9gkyJyBrIJ2t58MbtxOWw0=; b=c9AwLAA+WNGe45O92zGG+5lNa0RYRRxAoFLFOHvYh0F/GfdQe7lfup17tPyGE0SvwTd3ZlV+Wbid0lw3gOrk8enD4hZ8JkuE5/kINEdar7eNzEgu7i2ckIc1hy+DU5okkwVT/I8VRnZC3iwjSPOc/oGokei7YIf0jUzOsppX0xzVWlY9ssRgfrizl3NmcnwbLPIxLGclKjx7cSR9QFk6Usgi8W/IbIMcOw9XXwZBjGXV18EFXrplptEgWnV9RBBmvt4/nBrw/v8BUOBg2iWJVZVtHbdY/GW/ruSOnzg+CGGBXBWv2PdqMjZXef9scuWhM0RywMQ75fELbeu+pZetEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=nongnu.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sMelwTkH0ReVAXnWxYM6l9gkyJyBrIJ2t58MbtxOWw0=; b=G0D7k+gXEsEZVk75xJDX3wh3vGtFDoRAmLhfYOJoL0v1thL3igvDoXAlAH2o0xlXLOuMaDT39XU0NaJ9FlWOC5x1vnJytbJ1xJad+mAfRApDBIchuOuU87lLTRpsq+/dd5hBPCkO+XFroI80wIOFcxdgyri3uJSIl+4Q7XjTKZc= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; 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 (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C From: Luc Michel To: , CC: Luc Michel , Peter Maydell , Francisco Iglesias , "Edgar E . Iglesias" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alistair Francis , "Vikram Garhwal" , Alistair Francis Subject: [PATCH v2 4/7] hw/core/register: remove the `register_finalize_block' function Date: Thu, 2 Oct 2025 09:34:13 +0200 Message-ID: <20251002073418.109375-5-luc.michel@amd.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251002073418.109375-1-luc.michel@amd.com> References: <20251002073418.109375-1-luc.michel@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PEPF0001AE18:EE_|SA0PR12MB7002:EE_ X-MS-Office365-Filtering-Correlation-Id: 3697c897-4480-4f88-7408-08de01862589 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?rVIiz5valujUDSVZ0QqfLoJLwxZGyFiAVqViyAjLGWTKWu3oeT9M/nuLSHDd?= =?us-ascii?Q?BpD+/v17LAOrPvL+8PkSPJoEw2ZuBRIhxO8H0BRzdOMsRAZIH1QGLpUntVxe?= =?us-ascii?Q?CyX1Or6ZxaBvJbBaA7hF7p4bSeG3psMwu76d0jDwjJSKwxKPO3veJOUwvBZ3?= =?us-ascii?Q?IlKgSreMfboj7O/WS8Qe88BZlhIW2TZe/XQs8KHN/KNSBV5afxUN7QvQVS33?= =?us-ascii?Q?MBYMJFUHa/J/HMfxwptdqGIyn3FII5fuhT60XWi2JVke5scvDSuMCU8nY2TO?= =?us-ascii?Q?vVuXWtMGfp/FPhhbIGgH7aTxpwTQf13YCy4WNIMpCZVQnldzFz9d0HsYPFom?= =?us-ascii?Q?2djQNpJh2ga4jY2QGKaongEfSYyV2M8iz+wKZJB9Pa4sxhqSDLZhtkULZ3xH?= =?us-ascii?Q?6IIgYpZ53m19f86JjLFPQcQXSimwpClyrPDJatD+VJyUNHhyE5GF+YEiW0Jy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HpGRaC6RWDXwAoZiXrflkKSUiFFT3er?= =?us-ascii?Q?6QpIsN2Fhm+CqkHtzGNuP6bgxS/b5M+outx84Aq7fuxlkICh9MoI1itgercj?= =?us-ascii?Q?VR84W3KqC8uLk/tY9EgOHbLCnVfwIePq4hrMz+DoNEU5+srxA/IwRjOC/CAT?= =?us-ascii?Q?Ksg/clv+y43/eRUCj+GmzoID14DewLaa0kFraYrOEFljnv+WTuGC7fcgFNb/?= =?us-ascii?Q?ccRrfhEAO6ueazt89m4=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:satlexmb08.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(36860700013)(82310400026)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2025 07:34:39.8944 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3697c897-4480-4f88-7408-08de01862589 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BY1PEPF0001AE18.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB7002 Received-SPF: permerror client-ip=2a01:111:f403:c007::2; envelope-from=Luc.Michel@amd.com; helo=MW6PR02CU001.outbound.protection.outlook.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no 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 @amd.com) X-ZM-MESSAGEID: 1759390623832116600 Content-Type: text/plain; charset="utf-8" This function is now unused. Drop it. Reviewed-by: Alistair Francis Reviewed-by: Francisco Iglesias Reviewed-by: Edgar E. Iglesias Signed-off-by: Luc Michel --- include/hw/register.h | 14 -------------- hw/core/register.c | 4 ---- 2 files changed, 18 deletions(-) diff --git a/include/hw/register.h b/include/hw/register.h index 65c82600e06..7b0f4c8b7a6 100644 --- a/include/hw/register.h +++ b/include/hw/register.h @@ -207,20 +207,6 @@ RegisterInfoArray *register_init_block64(DeviceState *= owner, uint64_t *data, const MemoryRegionOps *ops, bool debug_enabled, uint64_t memory_size); =20 -/** - * This function should be called to cleanup the registers that were initi= alized - * when calling register_init_block32(). This function should only be call= ed - * from the device's instance_finalize function. - * - * Any memory operations that the device performed that require cleanup (s= uch - * as creating subregions) need to be called before calling this function. - * - * @r_array: A structure containing all of the registers, as returned by - * register_init_block32() - */ - -void register_finalize_block(RegisterInfoArray *r_array); - #endif diff --git a/hw/core/register.c b/hw/core/register.c index 70c33d97d8b..a4e12c81870 100644 --- a/hw/core/register.c +++ b/hw/core/register.c @@ -320,14 +320,10 @@ static void register_array_finalize(Object *obj) RegisterInfoArray *r_array =3D REGISTER_ARRAY(obj); =20 g_free(r_array->r); } =20 -void register_finalize_block(RegisterInfoArray *r_array) -{ -} - static const TypeInfo register_array_info =3D { .name =3D TYPE_REGISTER_ARRAY, .parent =3D TYPE_OBJECT, .instance_size =3D sizeof(RegisterInfoArray), .instance_finalize =3D register_array_finalize, --=20 2.51.0