Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1662727rdb; Thu, 7 Dec 2023 05:46:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IE56Ww3JAXAyNcxg5RHbyWDv64CX13QoVo/9Lp0ig3prWI5xntdnXn9Y9LEupQO+goRAH31 X-Received: by 2002:a17:90b:4cc2:b0:286:6cc0:caea with SMTP id nd2-20020a17090b4cc200b002866cc0caeamr2467351pjb.97.1701956797959; Thu, 07 Dec 2023 05:46:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701956797; cv=none; d=google.com; s=arc-20160816; b=pDpBwbPtb9rLvvROVICmRdFwnkaeSaInoREhTG+jhITVm2QdXRKqD31R1czHMgGMpr QNv2bE6WnOybwVMx2wyBGjneNPUf2WIeCwhzykb6r1BZuKXy5l8ec5zyFF+qcIVVfZz2 NZktOu/Ni5h0SSnb6RMUFl4B8wbMFZ48UHiT8q8l26qzsRVaPEVowfHq33NN/fUt72K4 B4QUBwV9oy5kzdCttKlu8fuE+9UYaWCvlnTXtaN2hm5OerTLxOppVWtCuSQu+AhvaLRi qs5Bs77CyIMFz0kKPVplP8FsAxRNjqRFfC3Zgwft11XKqSZjENwr4vgCZOYBOeRsy5vR QB0g== 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=MayE2jstjV8R9mQ7ezeMnZEaKl2NQz8vMG8UW7Z3nRs=; fh=rb5sR2rQa902X84yik1TqLU5qpRkQt89dLyRG+6e3gw=; b=ZlPlVIvTNZZtuujpEiXLcdIY1ooeiAElZxWJCA/hkPI0hHAA13IZquLITiR3QVMa8U KAsifLv3z5mx5PEz6eisPWMjQQLW1chZNK6l0WpVbd3D4eT8vO+pR7RGIv6Qo7lfWPa4 K6yrasB5otC8oCMk1auPz913SMsAgmKyn48JFpR4TM2sXdK/OrO1ceKDI9Ts8VWJ4hW4 O2ZWLXDAP9PBtDOXNkJ/u6N65GqIckUKzOrfuH0ZI2M0lFQTczdHuoqpt6z3E3KokpiM 7KnZ3FMbZUmSlZT4IuCNcsM5Go7wZUeFXYAQTS4DqI97hhjZa+dUArGEJILqsoaSdIO2 fPuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HnFVJREz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id mg15-20020a17090b370f00b0028869a825adsi1152259pjb.56.2023.12.07.05.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:46:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HnFVJREz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 21878806A852; Thu, 7 Dec 2023 05:46:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442031AbjLGNqS (ORCPT + 99 others); Thu, 7 Dec 2023 08:46:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442008AbjLGNqR (ORCPT ); Thu, 7 Dec 2023 08:46:17 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 800AE10CF for ; Thu, 7 Dec 2023 05:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701956782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MayE2jstjV8R9mQ7ezeMnZEaKl2NQz8vMG8UW7Z3nRs=; b=HnFVJREzmV0+5B+WRfsa3Auj1wBsxEz2bPLl3/fI/LP7zdXHX50b86t3ZV+zkSbUBQ03vl DKdbFJeXnMAktHe5bhIStoVzemF9lHkK3wGoM7R6+ZNCgjfnLi5UsuJPUMBRjMXH/DV7Q0 f+jsH8UUO0nW09h3oX/VKGSLdbC4+ZA= Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-437-RfYS4EubPbaPBKM8hzGFJA-1; Thu, 07 Dec 2023 08:46:21 -0500 X-MC-Unique: RfYS4EubPbaPBKM8hzGFJA-1 Received: by mail-ot1-f72.google.com with SMTP id 46e09a7af769-6d83f218157so1230040a34.1 for ; Thu, 07 Dec 2023 05:46:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701956780; x=1702561580; 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=MayE2jstjV8R9mQ7ezeMnZEaKl2NQz8vMG8UW7Z3nRs=; b=jcsxaH19zM4f4k+uMhVaoZbmk44aNxxfqPv2tpxdxgFF3nRUX5jWtHfVTLGukc4OTi PIeQ6B2azqPRziFND3NXKf8D5eAgHt/eOV7pZ3bEXr1KWZan9cDur701hfX+euwdfh/u PqGjdu0TcfShZbfGRx4h5Dn1/DyBlQxGM9IdzEUF0g0HI1ISZFkTYv1QCHUKECQt7Xe0 wTUaXQjj6uElF0/Y+2VAZT5x2ZhFsGQhReIauKYtUz2boU4iZsD1lOw1o3IbeAjzgjs9 +mnNwg/ZH6C/0gYOlik3YcwUfn4C05JUoQs7qek64Xaw7LrxzSltCBFkaalojXgi7n95 e0Vw== X-Gm-Message-State: AOJu0YxAUqXD63hiWQlrjBAv+zDm6vmTjq4mXq1NdLttyBzf0voEYSU/ ci6HyqCuexkXZq3u313XN0kSsiJK/Wh50GNglymxSR4AoEYsMiKduP7UkshfEhaI5IEYDFnp/Si Elz2fQgb/S9CxvbA73e0/dxNb X-Received: by 2002:a05:6358:7244:b0:170:2cff:b57e with SMTP id i4-20020a056358724400b001702cffb57emr3149551rwa.28.1701956780346; Thu, 07 Dec 2023 05:46:20 -0800 (PST) X-Received: by 2002:a05:6358:7244:b0:170:2cff:b57e with SMTP id i4-20020a056358724400b001702cffb57emr3149542rwa.28.1701956780083; Thu, 07 Dec 2023 05:46:20 -0800 (PST) Received: from fedora ([2600:1700:1ff0:d0e0::47]) by smtp.gmail.com with ESMTPSA id cx11-20020a056214188b00b0067ac01d39bdsm496309qvb.47.2023.12.07.05.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:46:19 -0800 (PST) Date: Thu, 7 Dec 2023 07:46:17 -0600 From: Andrew Halaney To: Manivannan Sadhasivam 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: References: <20231201151417.65500-1-manivannan.sadhasivam@linaro.org> <20231201151417.65500-12-manivannan.sadhasivam@linaro.org> <20231207053159.GC2932@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231207053159.GC2932@thinkpad> X-Spam-Status: No, score=0.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 07 Dec 2023 05:46:35 -0800 (PST) On Thu, Dec 07, 2023 at 11:01:59AM +0530, Manivannan Sadhasivam wrote: > 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. With that in place please add: Reviewed-by: Andrew Halaney > > - 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 > > > > > > > > > > > > -- > மணிவண்ணன் சதாசிவம் >