From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752915AbcLHKIl (ORCPT ); Thu, 8 Dec 2016 05:08:41 -0500 Received: from mga09.intel.com ([134.134.136.24]:54167 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752102AbcLHKIk (ORCPT ); Thu, 8 Dec 2016 05:08:40 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,318,1477983600"; d="scan'208";a="795667064" Date: Thu, 8 Dec 2016 15:48:27 +0530 From: Vinod Koul To: Kirtika Ruchandani Cc: tiwai@suse.com, arnd@arndb.de, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Hardik T Shah , Omair M Abdullah , Jeeja KP , "Subhransu S . Prusty" , Mark Brown Subject: Re: [PATCH] ASoC: Intel: Skylake: remove unused 'out_fmt' variable Message-ID: <20161208101826.GZ6408@localhost> References: <1481176902-131803-1-git-send-email-kirtika@chromium.org> <20161208095959.GY6408@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161208095959.GY6408@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 08, 2016 at 03:30:01PM +0530, Vinod Koul wrote: > On Wed, Dec 07, 2016 at 10:01:42PM -0800, Kirtika Ruchandani wrote: > > Commit 4cd9899f0d16 introduced struct skl_module_fmt* out_fmt without > > using it. Compiling with W=1 gives the below warning, fix it. > > > > sound/soc/intel/skylake/skl-topology.c: In function ‘skl_tplg_update_buffer_size’: > > sound/soc/intel/skylake/skl-topology.c:301:34: warning: variable ‘out_fmt’ set but not used [-Wunused-but-set-variable] > > > > This is a harmless warning and is only being fixed to reduce the noise > > with W=1 in the kernel. > > Heya, > > Can you please tell me which tree this warning was found on? At least this > doesn't exist upstream. The out_fmt is very well used. Sorry I messed up, got confused mcfg->out_fmt variable :( This looks fine: Acked-by: Vinod Koul -- ~Vinod