Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp869853lqo; Fri, 17 May 2024 04:19:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWA0WGf0Jp4Joqknv4YI3USKbRO7xms2zwjqxu/91aDzWj/r/mZkI10Xv92Hnknl0qMRDe+Pm9H74KVtj1yCQRA0tNufj2H+vfNPq12dw== X-Google-Smtp-Source: AGHT+IEY2L8ZLtCQiqSLC0l0Gxy0rGmgjkfjjErg9AiBReL/zMrDecXxxX0/tDzj5ZBn/PmftmnV X-Received: by 2002:a17:902:e88b:b0:1e4:733c:eac8 with SMTP id d9443c01a7336-1ef42e6d9aamr320663445ad.8.1715944758824; Fri, 17 May 2024 04:19:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715944758; cv=pass; d=google.com; s=arc-20160816; b=oDgYGLdol/aHJt0ZGEFjLmVGufYfaAlboWJ5bgAasFscdAoUey7EUtC9iSeva1R/Ds 2Cmh81Rlep3DQmshimLTq4xUPvXxCW05Y3itMqAJjR4z2zjdvO4OOVIA6zwzQ+4goVaj ar8T0mMf5NFNRlltLmmvYAC7B/3axH1qJXfWENNlxwIBkus58vUKvoTdayqVS5+H4RdY MSGKkkoe8kKJnPTxaqQcIa/jNAbaT07Mmd1jRP4t9vkTYDsbilMnXD6asN9nDidD7bDZ K5Fvg8n/tGsBAUK7AV2NM/G48n5RafcDkE6lUPlFhJujPQtTjT1WkWpFe7Ye68laSGGH XuAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=8fWvTVdamGkUuRsdVgUf56VkvVX12PzmdijVreLfbOY=; fh=yREpnsSDoCKCtZHfCoOvcjlVN2NLRxbbOPudK4mggaA=; b=Pu2hflXEwBM8/2OaENLsPSNv1OrwIHUpVH5qk8ln3r5aN/GV875OdjsVMl4A3EgwbB b0uvK8/APBZCmHq/FGLTLSHqAp263KtLNqF1eGX1mV4OgYrXBob7ABK0zgC6UWSkfVuA VPyoTmar9mFmBLkm00IWh7YNO2kCEmn1YvtItZ5WSZgnSKYwl3yfOGXhiAQeTIusmjf/ BoPr7cQhs1Iu4QwPuDn2EfhaXqET5ywstFx4ZhPiNQ2yjYcvWAJNLg/+iPPtE85WIKjj rJSwSjluJK352LipCdgFKnqdlgmw51/kr/Yc5x1MNCJybztN8Kts/ElnzNp+0Tq3bXGF TS7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=HGCg061F; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-182040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf3172csi183982925ad.198.2024.05.17.04.19.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 04:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=HGCg061F; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-182040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6A2BD2811EE for ; Fri, 17 May 2024 11:19:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 270B73D56D; Fri, 17 May 2024 11:19:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="HGCg061F" Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 052733B78B; Fri, 17 May 2024 11:19:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715944748; cv=none; b=RldVElgDMFhkilnLxr5nvR+4FFkUFTFyh9NoyYTHxSY1IMyXW2HdCPda7+CHC0GXgj5HVRUvKTIKZhYbbHmNpiPCrC1KLZefbHy7D2IrLTqj9jx8WLDG0hSTMRtnpmdkzQ93bu3ds3P7Oa4XfagEj4o6T0pcIsfS3Z+3dw0HoLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715944748; c=relaxed/simple; bh=cO2vSdqcGJpMPi+yEXm6Pdtgj69gONnYZVOEhF5dVBM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GI9oN2ZLc41Pdgl44YSjLy+HATt6FdpwGLHB2hKt8au3QervD1GARige6zgMt8Flc77a9W+SrIt87ZKrDmOqA35VOWOTOQmnGwdPua5jOYdZWw7r9eOPOcbVOe7ylVbHBcgcxS1bQzlRQx3IbXLxP95Yps+YfwxBenmO34TNf3w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=HGCg061F; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=Content-Type:MIME-Version:Message-ID:Subject:From:Date:From :Subject; bh=8fWvTVdamGkUuRsdVgUf56VkvVX12PzmdijVreLfbOY=; b=HGCg061FjpQGYi68 ux0lHPT0iTNJWGYwicTiV0q6ItNJDnmGwkf62XqhoIJqCOClIHhnhulIFQF6oQz+Z6G3pMJnihR/N BgTbwF2D1MWAxgv1XK1+u/wtiPpOp85cbrFbY9o8OU92rT8LdfjDO0ssXQE/frARhKUmfYtFw1jUj H9tmkfhigG6TR/1nPuS0r7glwYJOFGB52PLkzzXMbKOMjbRdmjQcPGfPHk9ZcHWf9i1+tItq21F/H WIzu1vbhtjIITEOJhaPd9wZDfDRQrMM3E7vQ9vOSqWk5q3SbVhYaCpbkmnSCR57Yczn+wuWtsSAZz WL9vglftOgTaHO98KQ==; Received: from dg by mx.treblig.org with local (Exim 4.96) (envelope-from ) id 1s7vc7-001NSk-0s; Fri, 17 May 2024 11:19:03 +0000 Date: Fri, 17 May 2024 11:19:03 +0000 From: "Dr. David Alan Gilbert" To: Bryan O'Donoghue Cc: Frank.li@nxp.com, vkoul@kernel.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] dmaengine: qcom: gpi: remove unused struct 'reg_info' Message-ID: References: <20240516152537.262354-1-linux@treblig.org> <39b66355-f67e-49e9-a64b-fdd87340f787@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/6.1.0-21-amd64 (x86_64) X-Uptime: 11:18:40 up 8 days, 22:32, 1 user, load average: 0.10, 0.05, 0.01 User-Agent: Mutt/2.2.12 (2023-09-09) * Dr. David Alan Gilbert (linux@treblig.org) wrote: > * Bryan O'Donoghue (bryan.odonoghue@linaro.org) wrote: > > On 16/05/2024 17:25, linux@treblig.org wrote: > > > From: "Dr. David Alan Gilbert" > > > > > > Remove unused struct 'reg_info' > > > > > > Signed-off-by: Dr. David Alan Gilbert > > > --- > > > drivers/dma/qcom/gpi.c | 6 ------ > > > 1 file changed, 6 deletions(-) > > > > > > diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c > > > index 1c93864e0e4d..639ab304db9b 100644 > > > --- a/drivers/dma/qcom/gpi.c > > > +++ b/drivers/dma/qcom/gpi.c > > > @@ -476,12 +476,6 @@ struct gpi_dev { > > > struct gpii *gpiis; > > > }; > > > -struct reg_info { > > > - char *name; > > > - u32 offset; > > > - u32 val; > > > -}; > > > - > > > struct gchan { > > > struct virt_dma_chan vc; > > > u32 chid; > > Hi Bryan, > > > More detail in the commit log please - is the structure unused ? What is the > > provenance of it being added and becoming dead code. > > > > More detail required here. > > If you look at the V1 I had > ''gpi_desc' seems like it was never used. > Remove it.' > > but Frank suggested copying the subject line; so I'm not sure > whether you want more or less! > > I could change this to: > > 'gpi_desc' was never used since it's initial > commit 5d0c3533a19f ("dmaengine: qcom: Add GPI dma driver") Oops, of course I mean 'reg_info' which is what I fixed in v2. > Would you be OK with that? Dave > Dave > > > > > > --- > > bod > > > -- > -----Open up your eyes, open up your mind, open up your code ------- > / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ > \ dave @ treblig.org | | In Hex / > \ _________________________|_____ http://www.treblig.org |_______/ > -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/