From nobody Tue Nov 26 14:27:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1706776176; cv=none; d=zohomail.com; s=zohoarc; b=laTlZlXr8gJ6LDx3MX4+B7dQcIRLdpMJhplC92whB4eJK4no352xSFX6haySMqY6fDr1Qj3VYKRBR9GtkiYTtdfD5Ccs6xSua25DUvxixEH4lGa7nX5ojGq5Fqk63DM4kPW6C4Z5KdXUA+gxL5tc1W43OFVb1kRzyHQkL33x30U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706776176; h=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=Q6vMwmmJfFaShAPp3RCj5vei1n1om+RSiiIB78mLPFE=; b=PmbTLqvgl0DsZbcgemIN96OPC7rGLzeZF5GtR6hT/RXG/BbvVPvJQLKGZ2qzgCHl1jwK1SqMrVlvcQd2EzYCvIv2OSZTRPV193Y9d1pv2xuzkdzv903sc6EAObdwjW7d6te5W2onSrEWE+RRvXh3TaxysrTpEUlUB7gFEqIUwFM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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 1706776176500181.206164418698; Thu, 1 Feb 2024 00:29:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVSQG-0005Zu-Lf; Thu, 01 Feb 2024 03:27:48 -0500 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 1rVSPq-0005GV-AQ; Thu, 01 Feb 2024 03:27:22 -0500 Received: from mgamail.intel.com ([134.134.136.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVSPo-0005Ds-Cb; Thu, 01 Feb 2024 03:27:21 -0500 Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 00:27:13 -0800 Received: from liuzhao-optiplex-7080.sh.intel.com ([10.239.160.36]) by fmviesa003.fm.intel.com with ESMTP; 01 Feb 2024 00:27:08 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706776040; x=1738312040; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=e3taYolv4+Y3PUEeNEfgnrG/dw1ve6fm/GDhYPCuP8Q=; b=nyYEBvgRpAFKKMq+TQPUK3zh+hzse6XfhskPSka8T6O1+IXNo2W7pGPZ 0fJbAFs95+9G0vw8wqru1F/p4nLxxMXnUNHUHy2ueUhKo0XFANmhiCXAa pgmFw+0x4BaKtmmtnOHlCRQSmbcpg6S6nrz23pcqOOsfbfpS5XmTXjQxJ 1TKMnkbSGij67TxKcvZJ9sy/KQ9/xQlyzArOqFUAC7lRhztBatrN1tLjk CrTvXYZlL62xezEP+TV9p3bTEG46feWD30n2nYK5IVU6Id+PM/Zty49cQ TUWWEs7QLQr6MjaI99o59PeOYDGTCW6CZXm1Ku3tbFvRMsT2n+7Tmt0nC w==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="468077704" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="468077704" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="4348411" From: Zhao Liu To: Eric Auger , Peter Maydell , Thomas Huth , Halil Pasic , Christian Borntraeger , David Hildenbrand , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-trivial@nongnu.org, Zhao Liu Subject: [PATCH 1/4] hw/isa/vt82c686: Consolidate the use of device_class_set_parent_realize() Date: Thu, 1 Feb 2024 16:40:24 +0800 Message-Id: <20240201084027.345459-2-zhao1.liu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201084027.345459-1-zhao1.liu@linux.intel.com> References: <20240201084027.345459-1-zhao1.liu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=134.134.136.31; envelope-from=zhao1.liu@linux.intel.com; helo=mgamail.intel.com X-Spam_score_int: -55 X-Spam_score: -5.6 X-Spam_bar: ----- X-Spam_report: (-5.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.292, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1706776178069100004 Content-Type: text/plain; charset="utf-8" From: Zhao Liu Use device_class_set_parent_realize() to set parent realize() directly. Signed-off-by: Zhao Liu Reviewed-by: Thomas Huth --- hw/isa/vt82c686.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c index d3e0f6d01fb6..a99eae4f6333 100644 --- a/hw/isa/vt82c686.c +++ b/hw/isa/vt82c686.c @@ -328,8 +328,8 @@ static void via_superio_class_init(ObjectClass *klass, = void *data) DeviceClass *dc =3D DEVICE_CLASS(klass); ISASuperIOClass *sc =3D ISA_SUPERIO_CLASS(klass); =20 - sc->parent_realize =3D dc->realize; - dc->realize =3D via_superio_realize; + device_class_set_parent_realize(dc, via_superio_realize, + &sc->parent_realize); } =20 static const TypeInfo via_superio_info =3D { --=20 2.34.1 From nobody Tue Nov 26 14:27:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1706776162; cv=none; d=zohomail.com; s=zohoarc; b=bjl6Pg9ED+b0My5lTGRET48d0J1bDRR/QJW/v2LKlZ0cIjMM+cw3maj1OFkUF8FkmI38K5WAmdPFh3mHmvtnQTVZG5eT6sRSRRc9/5UbkfMAIfhUbm7py/MIlQoHVh11Vsxl7MUFT/YuGeTC7DbrZFGfAPOYIN2W5VfgYdJwIxk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706776162; h=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=IVTe2wBYyHPizEWzQITvRGX68qTfLXu8NnSp4hgtCzQ=; b=aYHSUKp46lZnzgleaM/HSI5gj8KWF7Q42NM66QYKopH2Ozpn1zSrGbJ+GKmGHZHdoVA4qKrTaExxh69z1J/zWCwLzjvH7TFFBrW0G19Pm2dVAdYKtVA7cFC7BS4Y656aVDkhrrpfUBg+U6CtNV4A1Hd0w0k2ehdzjNBREpfIMq8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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 1706776162973745.4613989487309; Thu, 1 Feb 2024 00:29:22 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVSQF-0005Rt-1i; Thu, 01 Feb 2024 03:27:47 -0500 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 1rVSPr-0005Hc-35; Thu, 01 Feb 2024 03:27:26 -0500 Received: from mgamail.intel.com ([134.134.136.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVSPp-0005Fp-8w; Thu, 01 Feb 2024 03:27:22 -0500 Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 00:27:17 -0800 Received: from liuzhao-optiplex-7080.sh.intel.com ([10.239.160.36]) by fmviesa003.fm.intel.com with ESMTP; 01 Feb 2024 00:27:13 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706776041; x=1738312041; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dfciqPxL/AH0dsGMoETl0DkYoZU6V2u2WYz2kQeiFVs=; b=K2Jknt6jZZYH6ClPSp8iMrJuzgFVoqNlGGXOnoPnvMdDP8g20NbWsdwZ m1ENpCY82XcKyrx9c4rxLHADhVkiDXNu1wkmF+Q5oILrllFnMObAUKISF mlY7lATiLVkPl1HUuTtdI9YyT6oH+ucNTjtuBL+E9wHRGnM+87L6zCbAh IcLO1+dqgwOEsP08uiwiYMRZYSqNJwlf2tuLZPhzP/mQUAyD3AYXzjc0f NbzPJFGjoW0YJh3UDQjV7jD5djENAVODfONbvU8Ly3N2hPVv5IXKmm6L8 QwxWXe+u5795c/P5Ij8x0++NT3JGU76FXNVSyMYwUvjd8L8utoQv+logd A==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="468077718" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="468077718" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="4348442" From: Zhao Liu To: Eric Auger , Peter Maydell , Thomas Huth , Halil Pasic , Christian Borntraeger , David Hildenbrand , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-trivial@nongnu.org, Zhao Liu Subject: [PATCH 2/4] hw/isa/pc87312: Consolidate the use of device_class_set_parent_realize() Date: Thu, 1 Feb 2024 16:40:25 +0800 Message-Id: <20240201084027.345459-3-zhao1.liu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201084027.345459-1-zhao1.liu@linux.intel.com> References: <20240201084027.345459-1-zhao1.liu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=134.134.136.31; envelope-from=zhao1.liu@linux.intel.com; helo=mgamail.intel.com X-Spam_score_int: -55 X-Spam_score: -5.6 X-Spam_bar: ----- X-Spam_report: (-5.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.292, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1706776164328100003 Content-Type: text/plain; charset="utf-8" From: Zhao Liu Use device_class_set_parent_realize() to set parent realize() directly. Signed-off-by: Zhao Liu Reviewed-by: Thomas Huth --- hw/isa/pc87312.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/isa/pc87312.c b/hw/isa/pc87312.c index ee23f3e164df..64dd17b537f2 100644 --- a/hw/isa/pc87312.c +++ b/hw/isa/pc87312.c @@ -338,10 +338,10 @@ static void pc87312_class_init(ObjectClass *klass, vo= id *data) DeviceClass *dc =3D DEVICE_CLASS(klass); ISASuperIOClass *sc =3D ISA_SUPERIO_CLASS(klass); =20 - sc->parent_realize =3D dc->realize; - dc->realize =3D pc87312_realize; dc->reset =3D pc87312_reset; dc->vmsd =3D &vmstate_pc87312; + device_class_set_parent_realize(dc, pc87312_realize, + &sc->parent_realize); device_class_set_props(dc, pc87312_properties); =20 sc->parallel =3D (ISASuperIOFuncs){ --=20 2.34.1 From nobody Tue Nov 26 14:27:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1706776177; cv=none; d=zohomail.com; s=zohoarc; b=e+WPQhpoMt6c+PnTUQtc6ZgvhcdN+X1BG/Z/Ogq39wq0fN1HxeiLLu/Ua+0ELgM9uvkfucFe3aui2omYrwNzGWQu8YISfatX9bNgMzhZglgrjTk1ErMEXun9OSJrHRncfkloPHh7org3H6odu02cQzKtI2Gx7boDHBUpNepN/nI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706776177; h=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=zZLFwMuKVTEWKj3IB5yRrxrSiBUAEe+2wIDYSFPdzco=; b=VurXUQKxWWAWVSpU1G9yK46vKcElkjuw/Y/zHFdJ4z9HrTyHD7TuOy/oeuVViFbsDV4irdUyj4io1oieqy0qGc83D6600HAtqoan723N73LROy4v/81Vg3FtY7/HWM/CrVCYxAy/+FkxXMY0udIiSDeHarzOxwPz7ylIhO2ODY8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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 1706776177008966.9986474048002; Thu, 1 Feb 2024 00:29:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVSQG-0005Sq-1j; Thu, 01 Feb 2024 03:27:48 -0500 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 1rVSPt-0005Li-2z; Thu, 01 Feb 2024 03:27:26 -0500 Received: from mgamail.intel.com ([134.134.136.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVSPr-0005Dg-MA; Thu, 01 Feb 2024 03:27:24 -0500 Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 00:27:21 -0800 Received: from liuzhao-optiplex-7080.sh.intel.com ([10.239.160.36]) by fmviesa003.fm.intel.com with ESMTP; 01 Feb 2024 00:27:17 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706776043; x=1738312043; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1nl3+K8pURSX0PIUZSsR4an8ZGi/KzhHvmfuQLv3Au4=; b=AL6Tl+ZQ6lqM+1v6+fuh7BD99V9K//CbKUbkzfZ/+hgEZrsTvgIFzyDL T2v1zrynr8D7yneoAJlC/J+K8u3iQ0+uxruWZXoAHgzJTsKFCmJMU0nLm DIqAvf57vlRudEg2LreQfWtGA1pMgo6518/gBywULjTDieA3ALjDr95sh gxwNn4ZvAGiRrkwENipMCJ8tqb6KuzkDWL1XhBV/6K9YrRMZSBfwdrdMs CVbWYH1JIU7S6eVS4exiS6M3UNt3wWNC5lqB7cbIG0FDZ6RNA2+1LXL0s HmGCM4CO7lCcHpEdGRZIDun2RwwImZuwk4gHxjPNuHHS2HfTXAKe8qmGp w==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="468077736" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="468077736" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="4348457" From: Zhao Liu To: Eric Auger , Peter Maydell , Thomas Huth , Halil Pasic , Christian Borntraeger , David Hildenbrand , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-trivial@nongnu.org, Zhao Liu Subject: [PATCH 3/4] hw/intc/s390_flic: Consolidate the use of device_class_set_parent_realize() Date: Thu, 1 Feb 2024 16:40:26 +0800 Message-Id: <20240201084027.345459-4-zhao1.liu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201084027.345459-1-zhao1.liu@linux.intel.com> References: <20240201084027.345459-1-zhao1.liu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=134.134.136.31; envelope-from=zhao1.liu@linux.intel.com; helo=mgamail.intel.com X-Spam_score_int: -55 X-Spam_score: -5.6 X-Spam_bar: ----- X-Spam_report: (-5.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.292, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1706776178069100003 Content-Type: text/plain; charset="utf-8" From: Zhao Liu Use device_class_set_parent_realize() to set parent realize() directly. Signed-off-by: Zhao Liu Reviewed-by: Thomas Huth --- hw/intc/s390_flic_kvm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/intc/s390_flic_kvm.c b/hw/intc/s390_flic_kvm.c index 4d5cbb2a2fb6..baaa30dcb734 100644 --- a/hw/intc/s390_flic_kvm.c +++ b/hw/intc/s390_flic_kvm.c @@ -646,9 +646,10 @@ static void kvm_s390_flic_class_init(ObjectClass *oc, = void *data) { DeviceClass *dc =3D DEVICE_CLASS(oc); S390FLICStateClass *fsc =3D S390_FLIC_COMMON_CLASS(oc); + KVMS390FLICStateClass *kfsc =3D KVM_S390_FLIC_CLASS(oc); =20 - KVM_S390_FLIC_CLASS(oc)->parent_realize =3D dc->realize; - dc->realize =3D kvm_s390_flic_realize; + device_class_set_parent_realize(dc, kvm_s390_flic_realize, + &kfsc->parent_realize); dc->vmsd =3D &kvm_s390_flic_vmstate; dc->reset =3D kvm_s390_flic_reset; fsc->register_io_adapter =3D kvm_s390_register_io_adapter; --=20 2.34.1 From nobody Tue Nov 26 14:27:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1706776177; cv=none; d=zohomail.com; s=zohoarc; b=g9yU7DZUbeZnOplniEHyOtm3q9it+M52+8CDz6YBUANHgjZWWi3w/5Z9Fvy1sIZZdGQaE3HT0gGFbR8pIm4qcLltRhNXn2Fc45fOiZjK6kPTNCZ7JCeAeOjlwU3XQB28R0X6cfhsyDV7xaPKtIYYN7LWmTxIF2JWEJBmZ3WDLTU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706776177; h=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=g1NQmSuq0UB9ni5ShJVrPhRBhwyrUV+6SlOguuQZplY=; b=Zbv90mLgHlq4u5YFJa38IKdN9IEvJs7rXwcfkru8HTqsCjuGXNM9VQEZjFdfdMj/GeCLa0ZZCBxLN4b4YshAwNXch/J5Xkp3kIu8EbSN9EY9v1d/IuvbVk5y/xpGcYFWYI/ckrjfpvanygui3PGjxO0oY0vSbZrdfIXBx09FxGc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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 1706776177921185.90177382567379; Thu, 1 Feb 2024 00:29:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVSQK-0005oq-Er; Thu, 01 Feb 2024 03:27:52 -0500 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 1rVSPx-0005Ln-0z; Thu, 01 Feb 2024 03:27:32 -0500 Received: from mgamail.intel.com ([134.134.136.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVSPv-0005Dg-IZ; Thu, 01 Feb 2024 03:27:28 -0500 Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 00:27:25 -0800 Received: from liuzhao-optiplex-7080.sh.intel.com ([10.239.160.36]) by fmviesa003.fm.intel.com with ESMTP; 01 Feb 2024 00:27:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706776047; x=1738312047; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=W2zXcUI+fNUSyO0giWXgca5RMLOU6fi+ZTNvqH+/o3o=; b=MC8OkAvuj5QboLSqH3RE5f+yV6cDObNw9GGTeR3HG4fTS4HymDEOOoGS /efxrI+1WkwHUe6QQggiapzH86Ifp1J5dYHtrKVsrGTy05jYLQZ+zD2GP JbX6ZW+haqqpaRfA5vVImVm9cLrZLjK+9GM/KTifsw1u7w8d+X6iv201y VG+hd8owF88hYvz+0ACGNO3wREZII0l2NzCkkFTLQXnLtn+uARAIzRR9R Mox1P47Uz/tHUnZK8CZh6fHvec28Bu3cULgFRyUQlg1AqYtPH6KQjvXc0 LUWg/1z1cFBUfvdhH/ff/OOvYSTVR/LfyWWyyAsbxNmCYz2/+Toa6HctW w==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="468077746" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="468077746" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="4348507" From: Zhao Liu To: Eric Auger , Peter Maydell , Thomas Huth , Halil Pasic , Christian Borntraeger , David Hildenbrand , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-trivial@nongnu.org, Zhao Liu Subject: [PATCH 4/4] hw/arm/smmuv3: Consolidate the use of device_class_set_parent_realize() Date: Thu, 1 Feb 2024 16:40:27 +0800 Message-Id: <20240201084027.345459-5-zhao1.liu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240201084027.345459-1-zhao1.liu@linux.intel.com> References: <20240201084027.345459-1-zhao1.liu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=134.134.136.31; envelope-from=zhao1.liu@linux.intel.com; helo=mgamail.intel.com X-Spam_score_int: -55 X-Spam_score: -5.6 X-Spam_bar: ----- X-Spam_report: (-5.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.292, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1706776180072100010 Content-Type: text/plain; charset="utf-8" From: Zhao Liu Use device_class_set_parent_realize() to set parent realize() directly. Signed-off-by: Zhao Liu Reviewed-by: Thomas Huth --- hw/arm/smmuv3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c index 68eeef3e1d4c..b3d8642a4990 100644 --- a/hw/arm/smmuv3.c +++ b/hw/arm/smmuv3.c @@ -1857,8 +1857,8 @@ static void smmuv3_class_init(ObjectClass *klass, voi= d *data) dc->vmsd =3D &vmstate_smmuv3; resettable_class_set_parent_phases(rc, NULL, smmu_reset_hold, NULL, &c->parent_phases); - c->parent_realize =3D dc->realize; - dc->realize =3D smmu_realize; + device_class_set_parent_realize(dc, smmu_realize, + &c->parent_realize); device_class_set_props(dc, smmuv3_properties); } =20 --=20 2.34.1