Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp988707pxk; Fri, 18 Sep 2020 00:16:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2zuN7GwOsA3aepSqhIrE6pw8yw54mOdImSa+1A1eU/I2TRoMsb9sEzJ5lFZiHNZCC3k2+ X-Received: by 2002:aa7:d417:: with SMTP id z23mr35735765edq.62.1600413410736; Fri, 18 Sep 2020 00:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600413410; cv=none; d=google.com; s=arc-20160816; b=Gvyq2l8jMx35E98EcARun4ScHA3T9+2cB/I2RCN19sgwAiCp+xzriqBbS7jgnNJxaO TISvduwR9wtlTTcfKLapNd9Crtc9dP0m1Wt1LDkjl0FJti9lwUQwbJrKtd851mOEFb62 akU1qKsmPT34AX0uexEl0y5VNRI/chRYrpv4+ysJ3iYPmu2GCeQR/meN3nUSkkfI8XnB Ldc5+xcBojrN0LGwzzttIYixS7LlFF9GuHC4sWNwE+c2ukckthSbF8HX4oqaGW1iV4LP o79pf5NdQGhEni9rblaGP/MKB0TNZi6II6QdfDO+qF9FtYBsvRtYNznvAdbWJximKSka SlMA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GknGYOyZMlfiB0m8p0bN1u98FYr1NWIgO3B5h4fO0Jw=; b=YHVtSH/vfh5gEda4NZw1a8fkPEV3JY/ART3lY8kmIsX5vwI7QfNre5Xcv3VE+LMEWe t+dEfEuxNx0gP8+BYAoMtqXSONQLueTVHZVgx3d6CJX7f4v2M86+1q5AqeREFeuKHcXl wzXbI99tYuNuJ3N0b5gdDOSO1qdR4KicYt0N+kfyjDtzr3DFlerKHSfZRgrhUMCX2WH5 2xea50OW3OsUOw+RCgRpSmXldVnM4P/MZtNdkBbbp4qfhrG9luQgiKrZ5adWRDUsTRX8 3U5tWA8GytIBoqaC0WIHS+fFfsa4CYopVnGX3sfw3AS/babSKb8MZlvVHXmvhwCGSurB Ulag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vut+RtHh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si1525636edw.285.2020.09.18.00.16.27; Fri, 18 Sep 2020 00:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vut+RtHh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726456AbgIRHKu (ORCPT + 99 others); Fri, 18 Sep 2020 03:10:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:46620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbgIRHKu (ORCPT ); Fri, 18 Sep 2020 03:10:50 -0400 Received: from localhost (unknown [136.185.124.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 349012067C; Fri, 18 Sep 2020 07:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600413050; bh=UcFYRiojSL4wjmOqdsdUtVNUDrkP8yA+FquGKhTMmMg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vut+RtHhYZhvozfiLBoHsSxyTjcIT1/9PjLXqwo2o/qNkudvWcRrhMwK5SB119O4L HW2OZZkG2JLDDkDFU01WMt9EBvfJSEY0oHBH4y0b5Ec2xakNqmTYY9jfMbhkNDroES VdyC+Ni/GVjxZQpzx7O2tBGBaNKsjGV7mZ/l2mHQ= Date: Fri, 18 Sep 2020 12:40:46 +0530 From: Vinod Koul To: Liu Shixin Cc: Green Wan , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] dmaengine: sf-pdma: Remove set but not used variable "desc" Message-ID: <20200918071046.GI2968@vkoul-mobl> References: <20200917071756.1915449-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917071756.1915449-1-liushixin2@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17-09-20, 15:17, Liu Shixin wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet': > drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' [-Wunused-variable] > > After commit 8f6b6d060602 ("dmaengine: sf-pdma: Fix an error that calls callback twice"), > variable 'desc' is never used. Remove it to avoid build warning. This was already reported by SFR and patch posted, so picked that one > > Signed-off-by: Liu Shixin > --- > drivers/dma/sf-pdma/sf-pdma.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/dma/sf-pdma/sf-pdma.c b/drivers/dma/sf-pdma/sf-pdma.c > index 754994087e5f..1e66c6990d81 100644 > --- a/drivers/dma/sf-pdma/sf-pdma.c > +++ b/drivers/dma/sf-pdma/sf-pdma.c > @@ -284,7 +284,6 @@ static void sf_pdma_free_desc(struct virt_dma_desc *vdesc) > static void sf_pdma_donebh_tasklet(unsigned long arg) > { > struct sf_pdma_chan *chan = (struct sf_pdma_chan *)arg; > - struct sf_pdma_desc *desc = chan->desc; > unsigned long flags; > > spin_lock_irqsave(&chan->lock, flags); > -- > 2.25.1 -- ~Vinod