From patchwork Fri Nov 4 16:15:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 621374 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp359933pvb; Fri, 4 Nov 2022 09:17:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7fJuI58kclulQ1U7Ol4GqLzEPRCVHB8kNRfcmDozLKw/ZJyjYVAWnJ2vuCNr6RvqewDyZw X-Received: by 2002:ac8:4f01:0:b0:3a5:54e2:4e1c with SMTP id b1-20020ac84f01000000b003a554e24e1cmr7176076qte.63.1667578678336; Fri, 04 Nov 2022 09:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667578678; cv=none; d=google.com; s=arc-20160816; b=Y3XsTQHUZ3LzjEv6qT4HNfrLZZCJNfv/8Ax3KbSlM1a+razEiKAzNJJeG6xo0XcsRl 9h3IJHUtllwrp6+5vZ8dkgXbrkPGnt5WQSXw5l5ZlCdMgWGt15TxvAt2xtxMrOcsMFJY 41TyZJap6kkyOdiZR+k1pK+T0gBinxFECteCP5/M9R1aib+HZbrftWA92hjL/4Yacmd2 dMlcGo6qwkHcg4Ww6ftne1Y1BD80fXCerUwgbDxPK5CYJ2RLROHjA86Kb1Y2/2eoA3wA zjh6HADgDmGXL7n+Ia41CS+gLZi4Ustb1libxl41TsKcA8gOI54NkTNUoIZh2HVEJwOc 8akA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LgwWUCq9zFhY/xMo6SS9MgYNo0IB4SrVXfC493SuMF0=; b=LuR3tp6cO67et5z1G5JF1p2odfEa8jZtQ+jfgYZcRVueLmKYgzizHT9d6UYLIoBt1U w+iogLzfPbV2Ia2RK5lSC/L6gf/YuXGdvHBwQqrvHgrIkmcuQipJTPlkymBXkBvdBsLT I0xyXqAwvXNgIyNrvODYGIgNW1UB5FkY3ubU4hffAOY5KD3y4nI8V5cdCX555kqrh+v+ 4wS/wnW4QYlB6rMrjftOK5dl2p1fLsAoerycJrmVf3LOrJYj+BwJx2ybUCb4NCHScatf ec+cZ3eSZSLUXQY5JHIab8IAz2AUnqLiHXXVQyUqgr178PI2TLKkxJrz7/b471Yyt6E0 SHNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YY3iouWo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id iv7-20020ad45ce7000000b004bbaffc8591si3082770qvb.512.2022.11.04.09.17.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Nov 2022 09:17:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YY3iouWo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqzMe-0007pv-22; Fri, 04 Nov 2022 12:16:16 -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 1oqzM1-0006WF-Q4 for qemu-devel@nongnu.org; Fri, 04 Nov 2022 12:15:41 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqzLw-0000iF-E4 for qemu-devel@nongnu.org; Fri, 04 Nov 2022 12:15:37 -0400 Received: by mail-wr1-x429.google.com with SMTP id o4so7744497wrq.6 for ; Fri, 04 Nov 2022 09:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LgwWUCq9zFhY/xMo6SS9MgYNo0IB4SrVXfC493SuMF0=; b=YY3iouWoz76g+Hk0iylTL3vOsBfGKqg7n38dfcJafUcKJYmnT5KFf4Xxt0oBnxeyzx 0GbXyA5MlFk9236AWpsqEiMAPzpsK2ewwR9oNFCfyOFxlIqB5t7DweesP34RP3dO7wA8 YMelY6Q7J/ZLdgs/mh1RNyNbakvM3Gl1sS3GH0OCi1494MS4YhmT7alLALpnL0kfpHA9 skob8Qdn5gNtuv87hJo9vPSF+Jm/6d1yAo8v6wBjawyubV7dDfU1YcMFlaxhNt1yDX4P 6CcLyE3SqPk0k1HGKuquusyFKOm/MFXMOnzCQKMW67/7d9iscQRSvTCKoD49kuIRfZ4r RE8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LgwWUCq9zFhY/xMo6SS9MgYNo0IB4SrVXfC493SuMF0=; b=IW5+2Gcman2tkgv/soyjaLLCotKLhB2tDsthb10HCvvle6kiscbAcLwdPId3nmqkRy 9f/4oZjml2gDjZmsgtbfg6fH/QbWTUfkEKEPkO9j8wweidNEPHgcTzeTvOUizgnwWRmh 2UqnBoClQhMPPqmcd1JT6iecllV5Nebp0t9xrdq4Nr+c0D7rfk/PC7lfFB5ea7Upa1xl BfsSEz2Fa1h/UthCuyb0qscvmO9bQ50v5gfiTEnLr6RllKMCieh8NbjqgsiprB/6Bno1 oLLFCUO0j72ZXYMZlbqMcj1bbNiJXtEl9cCYM1cAdPX/wTJLbt+CBBIProjMFypLI8mK CCkA== X-Gm-Message-State: ACrzQf1UboSCFN72d3IWr83+ON6Ewy9QvkiCoW/DG+qkinei0wjud2nQ ml0k9u2K8vFU75haCOYJcXB2/R2aTkeYbw== X-Received: by 2002:a5d:59af:0:b0:236:6b90:1e65 with SMTP id p15-20020a5d59af000000b002366b901e65mr22964926wrr.362.1667578529175; Fri, 04 Nov 2022 09:15:29 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ay5-20020a5d6f05000000b0022e57e66824sm4649645wrb.99.2022.11.04.09.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 09:15:28 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Cc: "Maciej S. Szmigiero" , Gerd Hoffmann , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Stefano Stabellini , Anthony Perard , Paul Durrant , Mark Cave-Ayland , Matthew Rosato , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH for-8.0 9/9] hw: Remove device_legacy_reset() Date: Fri, 4 Nov 2022 16:15:13 +0000 Message-Id: <20221104161513.2455862-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221104161513.2455862-1-peter.maydell@linaro.org> References: <20221104161513.2455862-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org The device_legacy_reset() function is now not used anywhere, so we can remove the implementation. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- include/hw/qdev-core.h | 9 --------- hw/core/qdev.c | 10 ---------- 2 files changed, 19 deletions(-) diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index c7eda169d78..35fddb19a64 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -776,15 +776,6 @@ BusState *sysbus_get_default(void); char *qdev_get_fw_dev_path(DeviceState *dev); char *qdev_get_own_fw_dev_path_from_handler(BusState *bus, DeviceState *dev); -/** - * device_legacy_reset: - * - * Reset a single device (by calling the reset method). - * Note: This function is deprecated and will be removed when it becomes unused. - * Please use device_cold_reset() now. - */ -void device_legacy_reset(DeviceState *dev); - void device_class_set_props(DeviceClass *dc, Property *props); /** diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 3b0f04c5c6d..2743191efe7 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -857,16 +857,6 @@ void device_class_set_parent_unrealize(DeviceClass *dc, dc->unrealize = dev_unrealize; } -void device_legacy_reset(DeviceState *dev) -{ - DeviceClass *klass = DEVICE_GET_CLASS(dev); - - trace_qdev_reset(dev, object_get_typename(OBJECT(dev))); - if (klass->reset) { - klass->reset(dev); - } -} - Object *qdev_get_machine(void) { static Object *dev;