Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1444645rdb; Wed, 6 Dec 2023 21:32:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZTTdABQOJ3OtIvlk2fToCFgN0l0F7Im4fnDcif3Vnkc7BU/UKntbRurPfW560iiEtpGdu X-Received: by 2002:a17:903:2091:b0:1d0:7d83:fdd9 with SMTP id d17-20020a170903209100b001d07d83fdd9mr1410384plc.122.1701927139988; Wed, 06 Dec 2023 21:32:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701927139; cv=none; d=google.com; s=arc-20160816; b=jwhpk+0CFxJhIUghDLDFNyNuHTqHB2k4BSA0LWQf8HYR2ar0ThX/V6oIBtMG81hL8b 3j9s5OYztfva51nQ+EA4KIP9SHukVSFqaL8v2aHToIVktTVMcJwvgSF6pZoNC/oY2RvG pckwAwJ2wjCZSC0CXyLIJ2qdjljzRD/dWETGwkQXC5gcxI+PlW1u5UMBO2NQxuAb5cd+ IrOHo49HHvJwucTQsL6SjMDwn681JCEgtdKHZw4XC5mlOvcu4WcifvpWSrRE0JJ9kLjN 2zStNYKoCWXgSSUWUpooUn/rbnyR0PpsF+UIKvhboCn57DQNQxXm9+p4xQSEwPELrz18 qhxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NnvGGl844Mt88/eDFjnKsRhrcFq+x0ulAemxO2S+bfU=; fh=wkFxy1TkNH8A7mBrzQKXHw5fzo+PKP0kD7h6bogzdto=; b=lDQ1YBBayEyXo4dQvQ05PCXqrkUl2S1+mHOBg3cJSAVQpYsXR8lLu2KfKtST9d0UPY CYM2gGtL6cFgemvlSu0j/I966NayeDf4fXMHxwHKnzOat+gXoXlYp73qSaJbMXO/KMPi ViQE7LYpvJzm6L5qY8J0PfJTyOHBD1nSHPnYLPUDiMnGWI/H+cuP5SQCZ7955oJktg3K zK7r4Wyo/RB10wUiyh/OE0loJO/2vxbRChHX09OaJxOF/vcMD3+6TPAa3HtLD3uSKV/h ww7nv9GqYxokkQuvrPmhWInOSe1Fneujv5TnADClmu3RcTC+YsbZIJoQpbtDs50t8sye EtOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JqWxNk/8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id je19-20020a170903265300b001cc282684c6si505376plb.278.2023.12.06.21.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 21:32:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JqWxNk/8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5748280DB708; Wed, 6 Dec 2023 21:32:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbjLGFcC (ORCPT + 99 others); Thu, 7 Dec 2023 00:32:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjLGFcA (ORCPT ); Thu, 7 Dec 2023 00:32:00 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4827D5C for ; Wed, 6 Dec 2023 21:32:05 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6ce93552d51so213559b3a.3 for ; Wed, 06 Dec 2023 21:32:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701927125; x=1702531925; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=NnvGGl844Mt88/eDFjnKsRhrcFq+x0ulAemxO2S+bfU=; b=JqWxNk/8LBdyyfAMc3QDFfDiE6mnBtHIQ1ohAfisVnnZy4nO/iuUF49OJavBGd5887 oIyYKmVqZTexFEPlsdFRhkiQ70VJnqCDTUKHARv/KbP8S4ecAMQXd8WBTGEhh1Eg0WFL ow6/qOFR9PT1TX7pRWjGwY1egeCAH5fPfKJDzMtOJAcjc8RL/SKpUClG6CLrcIZcHeb9 PEZf3TNONWu1sDy+qLFM98j7aZ1dJ6L+pif+E3+JGSENF8ll2/Etnh6tL8udKEgRc3uL QxQDaW3+5olmdHxp3pZZeULzRuCQC5wr49CT+iWMHoiEwHiyIv8nECLw9nnkY7Cnld7c MlWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701927125; x=1702531925; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NnvGGl844Mt88/eDFjnKsRhrcFq+x0ulAemxO2S+bfU=; b=HxZzL0L9ZpTAz2Ei/YO1zV00Gr6esid8VtgTTLrt9v1atKwRWm7FiK7Fep5C/sDR50 oOqM0iqheEI0WNcS3D/kTdh0WPADu99GG9pjBQVP0GlSXit7UWdtSwXSGLWUxn8Xnr2X tcDnjkdMu8mLwBY/LIFjzOZFHNZ4wnTYvve8Z2TSFYaRVGiCH9kaWTYsQj+94Y5+r6Ve +sjIkXUB9eETaDg6DfazRNLRNNIsvzzb+ZkPKRzycPFXbIkhj6Xvs0MDHkIHfoTMOwnd xo8c+zFydHOr7MQsj8Sfoj5X/cYeZ9KfOlxyhNvaOTOdkQNxjZ9RQ3RoRxnpUzidKsSE a1wQ== X-Gm-Message-State: AOJu0YwzfFbXPf9nExBj5LTjCq1zgWsioBO6uDSvjXhuqzEOVMgR8ict yZD9Qv31Xu8wjiEqixw5kvWc X-Received: by 2002:a05:6a20:3d8e:b0:18d:2748:ea22 with SMTP id s14-20020a056a203d8e00b0018d2748ea22mr1917241pzi.17.1701927125136; Wed, 06 Dec 2023 21:32:05 -0800 (PST) Received: from thinkpad ([117.248.6.133]) by smtp.gmail.com with ESMTPSA id y16-20020a17090322d000b001d1c96a0c63sm378626plg.274.2023.12.06.21.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 21:32:04 -0800 (PST) Date: Thu, 7 Dec 2023 11:01:59 +0530 From: Manivannan Sadhasivam To: Andrew Halaney Cc: martin.petersen@oracle.com, jejb@linux.ibm.com, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, quic_cang@quicinc.com Subject: Re: [PATCH 11/13] scsi: ufs: qcom: Remove unused ufs_qcom_hosts struct array Message-ID: <20231207053159.GC2932@thinkpad> References: <20231201151417.65500-1-manivannan.sadhasivam@linaro.org> <20231201151417.65500-12-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 21:32:17 -0800 (PST) On Wed, Dec 06, 2023 at 12:54:43PM -0600, Andrew Halaney wrote: > On Fri, Dec 01, 2023 at 08:44:15PM +0530, Manivannan Sadhasivam wrote: > > ufs_qcom_hosts array is assigned, but not used anywhere. So let's remove > > it. > > > > Signed-off-by: Manivannan Sadhasivam > > --- > > drivers/ufs/host/ufs-qcom.c | 5 ----- > > 1 file changed, 5 deletions(-) > > > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > > index a86f6620abc8..824c006be093 100644 > > --- a/drivers/ufs/host/ufs-qcom.c > > +++ b/drivers/ufs/host/ufs-qcom.c > > @@ -90,8 +90,6 @@ static const struct __ufs_qcom_bw_table { > > [MODE_MAX][0][0] = { 7643136, 307200 }, > > }; > > > > -static struct ufs_qcom_host *ufs_qcom_hosts[MAX_UFS_QCOM_HOSTS]; > > - > > I think we can get rid of MAX_UFS_QCOM_HOSTS as well with this change in > place? > Yes, thanks for spotting. - Mani > > static void ufs_qcom_get_default_testbus_cfg(struct ufs_qcom_host *host); > > static int ufs_qcom_set_core_clk_ctrl(struct ufs_hba *hba, bool is_scale_up); > > > > @@ -1192,9 +1190,6 @@ static int ufs_qcom_init(struct ufs_hba *hba) > > > > ufs_qcom_setup_clocks(hba, true, POST_CHANGE); > > > > - if (hba->dev->id < MAX_UFS_QCOM_HOSTS) > > - ufs_qcom_hosts[hba->dev->id] = host; > > - > > ufs_qcom_get_default_testbus_cfg(host); > > err = ufs_qcom_testbus_config(host); > > if (err) > > -- > > 2.25.1 > > > > > > -- மணிவண்ணன் சதாசிவம்