From patchwork Mon Oct 24 15:12:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10397 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp700826wru; Mon, 24 Oct 2022 16:24:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5kMzHjH39KmZ6hQkxoRN6NfRYPe5guWa7/gs1sRCfQtNvXZqnc/A4pIFZsiOh4eOnk+YpP X-Received: by 2002:a17:907:7da2:b0:78e:25f8:8803 with SMTP id oz34-20020a1709077da200b0078e25f88803mr29465574ejc.723.1666653880792; Mon, 24 Oct 2022 16:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666653880; cv=none; d=google.com; s=arc-20160816; b=aXP/23KZGhZslQg62icxtybW0v1UBy3Anu1biAMDdJyM0+stTLnI5NgPxlVz1TAGPA GLPkTQ1LG87ONXwBVEqvspPxOIQGyXgY4dKZ72daSLabACBq9dYW2C2LaaZq/ie6qRzF JNiVf7QBOqqFeMSQstpn1Zs0nGMsLmch1rz4g92pjsKoyy8uPUFh51LuOmcA2vWs42zi MnCq8Zx3hcxWkwBIlw6yKbUypQE78HlaiCx/HDw/drSZ0acPAEdzr2SON2/FUiDr79MK G5Jo+hawxV5jgwgvG035IPif7uLJH2Nl8H85F/X/XvseoPLuEjuZD7p+3abgK/jbzH7Z pz1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gNTIl+dvnyc9U2PStHK/4gkAcXw9KamGoLrHUOh8kVw=; b=WL4vC2ZVc/VZYqi2cp94SHptVYhOGEhYOSC8HBvEgMwWq4ddfpCOihWmAmCFtHanxN W3z5udfquJdnLueju1cSD059Y1Oc+mb2MrKiVW9v9/boltiiWs5xjDxBVB7kaKNXpcvX P66YVnE7zh8Jka6Yn4GpUGEtwZtMqhpplUcNg73CUj73Ubtkp2UCPEscRzgrXIx2EOGB Bf0VMnCuFY1AO4CgFF44V0dcINFkv/DW3VVlGvhpiFLRol7ZxAWUadBqST0acN4IFqDI BmHxdST9khFTDNaA5iKEYp4WwNP4LTgSFiVm5BwSvOtvR2zkKzxzRF2kpopl45xSmRX8 5y4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ne3asSo0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a056402268100b0045166555fddsi1347510edd.481.2022.10.24.16.24.17; Mon, 24 Oct 2022 16:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ne3asSo0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231264AbiJXXQ2 (ORCPT + 99 others); Mon, 24 Oct 2022 19:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbiJXXPv (ORCPT ); Mon, 24 Oct 2022 19:15:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73569C17 for ; Mon, 24 Oct 2022 14:37:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6AAA7B811E4 for ; Mon, 24 Oct 2022 15:12:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84939C433C1; Mon, 24 Oct 2022 15:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666624329; bh=NR95fQD0AlurKJdHSHQWI8XxPL1W3GaIT4ou4lR6QNw=; h=From:To:Cc:Subject:Date:From; b=ne3asSo0nI4dvMnGPjosAE+OsWId8FpC8kbfzBopzbdRH2JVLhnrP9eE3vltMf4jz 7pYNeXGx2MUuiBVWOL59XCbL4Zq1xN6ka11AAax9DGxy87yjkZz/qnYV0LDY83m1Lj 3CW5ydF/KR7X1IEJf7+MqeVQQIuaFLrDlcHtXFaHSslhz02oOjOGNopjy2/T6OBtgD lRrh/cvFpWgDVYG2ND72R6G2pUZ1+oy+IWnvumaR9K5kXCdo8W5B/XEpUBUU0XFKiD er/F3Dozfy2xxx514/iwpT3ihAxwxEO2OmvYtcEOPhRmo12U4mmXnX8yV4Uqdd3F/m TubuGoBl4Jv6Q== From: Nathan Chancellor To: Mathieu Poirier , Suzuki K Poulose Cc: Mike Leach , Leo Yan , James Clark , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] coresight: cti: Remove unused variables in cti_{dis,en}able_hw() Date: Mon, 24 Oct 2022 08:12:01 -0700 Message-Id: <20221024151201.2215380-1-nathan@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747604968034115776?= X-GMAIL-MSGID: =?utf-8?q?1747613259651581977?= Clean up the following warnings, as the variables are no longer used. drivers/hwtracing/coresight/coresight-cti-core.c:93:17: warning: unused variable 'dev' [-Wunused-variable] struct device *dev = &drvdata->csdev->dev; ^ drivers/hwtracing/coresight/coresight-cti-core.c:154:17: warning: unused variable 'dev' [-Wunused-variable] struct device *dev = &drvdata->csdev->dev; ^ 2 warnings generated. Fixes: 665c157e0204 ("coresight: cti: Fix hang in cti_disable_hw()") Signed-off-by: Nathan Chancellor --- drivers/hwtracing/coresight/coresight-cti-core.c | 2 -- 1 file changed, 2 deletions(-) base-commit: 665c157e0204176023860b51a46528ba0ba62c33 diff --git a/drivers/hwtracing/coresight/coresight-cti-core.c b/drivers/hwtracing/coresight/coresight-cti-core.c index 4a02ae23d3a0..c6e8c6542f24 100644 --- a/drivers/hwtracing/coresight/coresight-cti-core.c +++ b/drivers/hwtracing/coresight/coresight-cti-core.c @@ -90,7 +90,6 @@ void cti_write_all_hw_regs(struct cti_drvdata *drvdata) static int cti_enable_hw(struct cti_drvdata *drvdata) { struct cti_config *config = &drvdata->config; - struct device *dev = &drvdata->csdev->dev; unsigned long flags; int rc = 0; @@ -151,7 +150,6 @@ static void cti_cpuhp_enable_hw(struct cti_drvdata *drvdata) static int cti_disable_hw(struct cti_drvdata *drvdata) { struct cti_config *config = &drvdata->config; - struct device *dev = &drvdata->csdev->dev; struct coresight_device *csdev = drvdata->csdev; spin_lock(&drvdata->spinlock);