From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CA39C43460 for ; Mon, 10 May 2021 15:57:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D107615FF for ; Mon, 10 May 2021 15:57:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbhEJP6u (ORCPT ); Mon, 10 May 2021 11:58:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:47406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230152AbhEJP6l (ORCPT ); Mon, 10 May 2021 11:58:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4D901615FF; Mon, 10 May 2021 15:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620662256; bh=WdPzlfDTCAqTArztGfKS9FeSEMSjEbUExqTn0eT1uxE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oCU08r3+JeiM1EODyVhtcL2uqBllYgKaB/IxQtyt2gibGzH+xGQAkE09Fx7Kokl2A O8KsI7gOMkOPTXhrnnTjo2a8IXlsY5nWLu34oTgzzop+pogX+9SLjLKPOxxiiN9aSJ mItmR6M7Jl58iqIb3ma8KavCj3l5dbAvXGSfFRxgl3aDaDvnnhu79ucWhaOHcpfrbv 1OEzjMWmW9jO9FslFM6B1VoAAxalzBTzEZKLjgS2NsSbwUH0ZJk/MBS83iC8R+Ay5W DvA6iRo2WqTiDcf4fn7aBHoLfoUdkZTTrx+cJioSMtLzn6gQBwEU4lM/QrPOIrqdwl WVsHG6GIhSfkQ== Date: Mon, 10 May 2021 21:27:32 +0530 From: Vinod Koul To: Dave Jiang Cc: Zhen Lei , Dan Williams , dmaengine , linux-kernel Subject: Re: [PATCH 1/1] dmaengine: idxd: remove unused variable 'cdev_ctx' Message-ID: References: <20210508063012.2624-1-thunder.leizhen@huawei.com> <3181e59b-727b-50fd-2c14-78d68a5e09e9@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3181e59b-727b-50fd-2c14-78d68a5e09e9@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09-05-21, 17:26, Dave Jiang wrote: > > On 5/7/2021 11:30 PM, Zhen Lei wrote: > > GCC reports the following warning with W=1: > > > > drivers/dma/idxd/cdev.c:298:28: warning: > > variable 'cdev_ctx' set but not used [-Wunused-but-set-variable] > > 298 | struct idxd_cdev_context *cdev_ctx; > > | ^~~~~~~~ > > > > The variable 'cdev_ctx' is not used, remove it to fix the warning. > > > > Fixes: 04922b7445a1 ("dmaengine: idxd: fix cdev setup and free device lifetime issues") > > Reported-by: Hulk Robot > > Signed-off-by: Zhen Lei > > > Thank you. Issue already reported and fix posted here. > > https://lore.kernel.org/dmaengine/324261b0-1fa6-29f7-071a-a3c0ac09b506@intel.com/T/#t dropped this -- ~Vinod