From nobody Tue Oct 28 01:56:35 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516109227958378.9385955526884; Tue, 16 Jan 2018 05:27:07 -0800 (PST) Received: from localhost ([::1]:35929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebRGd-0003Oe-4m for importer@patchew.org; Tue, 16 Jan 2018 08:27:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebR6f-0003Rq-0N for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:16:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebR6b-0007hO-1c for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:16:48 -0500 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:47094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebR6a-0007gr-Te for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:16:44 -0500 Received: by mail-qk0-x241.google.com with SMTP id l64so20678864qke.13 for ; Tue, 16 Jan 2018 05:16:44 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id k29sm1436180qtc.87.2018.01.16.05.16.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 05:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=18N3dNuDT19ggwBzBCoxgDKyF/P479aZYb4xw3C7hEI=; b=An7ZKr17oCuEvFSe0bg9A7PSUJL1v/RULNO4x3mVuVi5bp2/Ae485Qu9BAbTz8ysQS 2JHhK1ZPDEtxOA6TsHMktuTfNj4eNrPOKKHHx3AbWDWXAwBxslpoDyTkyotVWzrvSKP0 XPbbDHl03k6D9mdzTR6c34qrdOarK0/bGcG44/dZ03svbLawBwHN/IBfCXcSaXpfV0Rt trImtMayXmYsbtbPGBGGMACPC1NoV60FlGrKMRmytCoB7PYr+FnPMh8aU/lwP2dklVl9 guza+E2r8rIhjD8u5GTIhlYYcinL4PPqNpTGbDjCuc75jZ861ZzCL5uWnW2orqAipKHj H1Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=18N3dNuDT19ggwBzBCoxgDKyF/P479aZYb4xw3C7hEI=; b=m2s5ZMYtvSZOOYfc1YkvsW133OC6ipoJ1+QqpQfCgl8Je9jMr+VMh92UfznKwDurHJ PTEikAhtDjPonm3t81/fNaKczEP4P0hE+p1JvugaKYGZOafLPQ3/8QBhqNvmquPbLVI6 zOHhneMTmtxPQsnL4xqucSZoYQ9/Xz7f8YPks2o+5cYojfW5xLN5N1wVsylPx2WdSm9x XKmWq7yFKB/RwzYJ5Y5RMQ8CHNu/Yg84xMYXrL33VkUR8K+xlZFF5j/wHxQj24s+WEeq sWoliyA8sSjsvu7lE0TKByXJ03iqo3VKFk0wsqvZ2xY0NS3sV2E6D+BzdnwJcTZshxhM vOPg== X-Gm-Message-State: AKwxyteI9VaQIp8lOhmpI5R83+D7MqVy8+HiQ4wEwfe6sakepZn0J9wV yVXLUe12LBF2b/64NXKhwwE= X-Google-Smtp-Source: ACJfBouhcjtbYrkCkBgjUtbrQ48HvJx+wyfm8f9PgRYdWI87h4b0iD29Rjh/yphT+XoBSIFoDpb6xQ== X-Received: by 10.55.43.198 with SMTP id r67mr28225009qkr.292.1516108604518; Tue, 16 Jan 2018 05:16:44 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Eduardo Habkost , Markus Armbruster , Peter Maydell , Paolo Bonzini , Eric Blake , Marcel Apfelbaum Date: Tue, 16 Jan 2018 10:15:53 -0300 Message-Id: <20180116131555.14242-10-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180116131555.14242-1-f4bug@amsat.org> References: <20180116131555.14242-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::241 Subject: [Qemu-devel] [PATCH 09/11] qdev: remove DeviceClass::exit X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 it has no users. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/qdev-core.h | 2 -- hw/core/qdev.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index de063b232f..de7fe2e6e0 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -30,7 +30,6 @@ typedef enum DeviceCategory { DEVICE_CATEGORY_MAX } DeviceCategory; =20 -typedef int (*qdev_event)(DeviceState *dev); typedef void (*qdev_resetfn)(DeviceState *dev); typedef void (*DeviceRealize)(DeviceState *dev, Error **errp); typedef void (*DeviceUnrealize)(DeviceState *dev, Error **errp); @@ -124,7 +123,6 @@ typedef struct DeviceClass { const struct VMStateDescription *vmsd; =20 /* Private to qdev / bus. */ - qdev_event exit; /* TODO remove, once users are converted to unrealize= */ const char *bus_type; } DeviceClass; =20 diff --git a/hw/core/qdev.c b/hw/core/qdev.c index a4f76c8f5d..985f890a74 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -225,15 +225,6 @@ static void device_realize(DeviceState *dev, Error **e= rrp) =20 static void device_unrealize(DeviceState *dev, Error **errp) { - DeviceClass *dc =3D DEVICE_GET_CLASS(dev); - - if (dc->exit) { - int rc =3D dc->exit(dev); - if (rc < 0) { - error_setg(errp, "Device exit failed."); - return; - } - } } =20 void qdev_set_legacy_instance_id(DeviceState *dev, int alias_id, --=20 2.15.1