Message ID | 20230724122029.1430482-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1768922vqg; Mon, 24 Jul 2023 05:35:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJDLRvtaCXSUqqYimf5pi8XPj+BBeabJBmgWhdtu4pQInxboLC8iJ7GR6PNMDLI1Nvb7fj X-Received: by 2002:a05:6a20:9701:b0:10f:1d33:d667 with SMTP id hr1-20020a056a20970100b0010f1d33d667mr9709443pzc.5.1690202123581; Mon, 24 Jul 2023 05:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690202123; cv=none; d=google.com; s=arc-20160816; b=gJh9rS66IROyAbKb68WobuMxU+QKPXnoctPN9TBkxy3i1RBUbB0f/akeFJRa7dmbE6 46/kNZiuHMFn/fiiFqS9Kv5pmS/6TMDQ2/i6vY46TgslFtmba1dlbc46o4NzyIlFadoA +digi/eBWz9o5jTTu+mVtBQJIOZwLujeZ8PVHuYuHKrj8hqazVpgr4iJoVmjsuIuSRD3 DS6WcXCYHETYqW25xuPFJuDQUir5zDeE/I+jKOZDNiT/zbypmdvKTTA9DG7leuGjL/8f 1Ah8eD6p5Hzg/4ciKZ27jGWid6ZW4iGoV/yfVdMXF74PVBK9qbhw9y8jpdl5X6yAzg6q N0qA== 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=VxR1W1m5sPZ5G7feNdM5A8fhqDz3Hvvg85Jjr/HWJkE=; fh=hSww+2nkiWfnj2mOSlizTSttIN8jAKETOSstpggsZLY=; b=Zp+hPGLUg/9dweI19ni3h7qfnCUA4Lo93gNU9G+7owQF9mTM+9smjbCnQFRgbOwmnf uyEwqUgn1pwZscUH+6HfCG3WZ3SvsGoQjiPD2Iuog9Inm2V8SuxJOsaEXuzVde52c5hd QSPB26P0CpFfXUrOfdJjtyfiy/5hTEWHoy2ooNjSM/dADtwsSoNRwlzXeGdbukhUI+cl dgouTGCch7rk6lz+UumZ6hRahKyMxmoTWPy7bnjTo/4M5DYFA/cOEKlNK5bgxsOAiSh8 w4UK7vzNwvbHH7JXs6Fay7IORhjzB9uC5iJcLxwHscUXFGVXOvQYRcEuMndFytCl/pH5 qNBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r6er/ayW"; 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 kv16-20020a17090328d000b001adc5bc4d8asi8457580plb.572.2023.07.24.05.35.10; Mon, 24 Jul 2023 05:35:23 -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="r6er/ayW"; 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 S230017AbjGXMVA (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Mon, 24 Jul 2023 08:21:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbjGXMU6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Jul 2023 08:20:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EEBB13D; Mon, 24 Jul 2023 05:20:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A755561149; Mon, 24 Jul 2023 12:20:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA628C433CC; Mon, 24 Jul 2023 12:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690201236; bh=TZvmwAFuS4u+vLp3XBVWaUA/bTmykDSIMnh6Tz5bu+0=; h=From:To:Cc:Subject:Date:From; b=r6er/ayWEK7YxoMzdWjRyaig5T7E1A4u6f3j/u5DAVXNGwACIEqB0A6NIGTsE91xt oSSIKI/KWVhXMfkFwa7zn61kNTxz5qLAeC44plpJ9/fwvcTthqvyWfVsul8Rf4RM3v pT3isXuR7vmhKtehn3GOCKvob0ET5OyNEP0/ky7oCWAALPN6oX4AaaD00siWvllTGG IdZgZYBcmFjxfHuyxw4X0ingZiT7l8A7xHYnIv8ejNVHnEuuXp7wyd6gAMK8132NEq V/CB9P9KaaJLs2l6PS3YEEvbL6R5fc6I/+j2CMHIAakw+xrO6Aibw3hq3uGMPvygcG JeqeniSZu1dRw== From: Arnd Bergmann <arnd@kernel.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Manivannan Sadhasivam <mani@kernel.org>, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Ziqi Chen <quic_ziqichen@quicinc.com>, Can Guo <quic_cang@quicinc.com> Cc: Arnd Bergmann <arnd@arndb.de>, Asutosh Das <quic_asutoshd@quicinc.com>, Andrew Halaney <ahalaney@redhat.com>, Abel Vesa <abel.vesa@linaro.org>, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: ufs: qcom: remove unused variable Date: Mon, 24 Jul 2023 14:19:58 +0200 Message-Id: <20230724122029.1430482-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772305381769518482 X-GMAIL-MSGID: 1772305381769518482 |
Series |
scsi: ufs: qcom: remove unused variable
|
|
Commit Message
Arnd Bergmann
July 24, 2023, 12:19 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> A recent change removed the only user of a local variable that needs to now also be removed: drivers/ufs/host/ufs-qcom.c: In function 'ufs_qcom_mcq_esi_handler': drivers/ufs/host/ufs-qcom.c:1652:31: error: unused variable 'host' [-Werror=unused-variable] Fixes: 8f2b78652d055 ("scsi: ufs: qcom: Get queue ID from MSI index in ESI handler") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/ufs/host/ufs-qcom.c | 1 - 1 file changed, 1 deletion(-)
Comments
On 23-07-24 14:19:58, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > A recent change removed the only user of a local variable that needs > to now also be removed: > > drivers/ufs/host/ufs-qcom.c: In function 'ufs_qcom_mcq_esi_handler': > drivers/ufs/host/ufs-qcom.c:1652:31: error: unused variable 'host' [-Werror=unused-variable] > > Fixes: 8f2b78652d055 ("scsi: ufs: qcom: Get queue ID from MSI index in ESI handler") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Abel Vesa <abel.vesa@linaro.org> > --- > drivers/ufs/host/ufs-qcom.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 3ee5ff905f9a6..5728e94b6527b 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -1649,7 +1649,6 @@ static irqreturn_t ufs_qcom_mcq_esi_handler(int irq, void *data) > struct msi_desc *desc = data; > struct device *dev = msi_desc_to_dev(desc); > struct ufs_hba *hba = dev_get_drvdata(dev); > - struct ufs_qcom_host *host = ufshcd_get_variant(hba); > u32 id = desc->msi_index; > struct ufs_hw_queue *hwq = &hba->uhq[id]; > > -- > 2.39.2 >
On Mon, Jul 24, 2023 at 02:19:58PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > A recent change removed the only user of a local variable that needs > to now also be removed: > > drivers/ufs/host/ufs-qcom.c: In function 'ufs_qcom_mcq_esi_handler': > drivers/ufs/host/ufs-qcom.c:1652:31: error: unused variable 'host' [-Werror=unused-variable] > > Fixes: 8f2b78652d055 ("scsi: ufs: qcom: Get queue ID from MSI index in ESI handler") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> - Mani > --- > drivers/ufs/host/ufs-qcom.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 3ee5ff905f9a6..5728e94b6527b 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -1649,7 +1649,6 @@ static irqreturn_t ufs_qcom_mcq_esi_handler(int irq, void *data) > struct msi_desc *desc = data; > struct device *dev = msi_desc_to_dev(desc); > struct ufs_hba *hba = dev_get_drvdata(dev); > - struct ufs_qcom_host *host = ufshcd_get_variant(hba); > u32 id = desc->msi_index; > struct ufs_hw_queue *hwq = &hba->uhq[id]; > > -- > 2.39.2 >
On Mon, Jul 24, 2023 at 02:19:58PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > A recent change removed the only user of a local variable that needs > to now also be removed: > > drivers/ufs/host/ufs-qcom.c: In function 'ufs_qcom_mcq_esi_handler': > drivers/ufs/host/ufs-qcom.c:1652:31: error: unused variable 'host' [-Werror=unused-variable] > > Fixes: 8f2b78652d055 ("scsi: ufs: qcom: Get queue ID from MSI index in ESI handler") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Thanks for the patch! Reported-by: kernelci.org bot <bot@kernelci.org> Link: https://lore.kernel.org/llvm/64c00cd4.630a0220.6ad79.0eac@mx.google.com/ Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> > --- > drivers/ufs/host/ufs-qcom.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 3ee5ff905f9a6..5728e94b6527b 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -1649,7 +1649,6 @@ static irqreturn_t ufs_qcom_mcq_esi_handler(int irq, void *data) > struct msi_desc *desc = data; > struct device *dev = msi_desc_to_dev(desc); > struct ufs_hba *hba = dev_get_drvdata(dev); > - struct ufs_qcom_host *host = ufshcd_get_variant(hba); > u32 id = desc->msi_index; > struct ufs_hw_queue *hwq = &hba->uhq[id]; > > -- > 2.39.2 >
Arnd, > A recent change removed the only user of a local variable that needs > to now also be removed: > > drivers/ufs/host/ufs-qcom.c: In function 'ufs_qcom_mcq_esi_handler': > drivers/ufs/host/ufs-qcom.c:1652:31: error: unused variable 'host' [-Werror=unused-variable] Applied to 6.6/scsi-staging, thanks!
On Mon, 24 Jul 2023 14:19:58 +0200, Arnd Bergmann wrote: > A recent change removed the only user of a local variable that needs > to now also be removed: > > drivers/ufs/host/ufs-qcom.c: In function 'ufs_qcom_mcq_esi_handler': > drivers/ufs/host/ufs-qcom.c:1652:31: error: unused variable 'host' [-Werror=unused-variable] > > > [...] Applied to 6.6/scsi-queue, thanks! [1/1] scsi: ufs: qcom: remove unused variable https://git.kernel.org/mkp/scsi/c/65aca38b8ce7
diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 3ee5ff905f9a6..5728e94b6527b 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -1649,7 +1649,6 @@ static irqreturn_t ufs_qcom_mcq_esi_handler(int irq, void *data) struct msi_desc *desc = data; struct device *dev = msi_desc_to_dev(desc); struct ufs_hba *hba = dev_get_drvdata(dev); - struct ufs_qcom_host *host = ufshcd_get_variant(hba); u32 id = desc->msi_index; struct ufs_hw_queue *hwq = &hba->uhq[id];