[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d3641489-e3c2-e525-567a-d0348c1eab4e@linux.intel.com>
Date: Thu, 7 May 2020 09:27:15 -0500
From: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
To: YueHaibing <yuehaibing@...wei.com>, lgirdwood@...il.com,
ranjani.sridharan@...ux.intel.com, kai.vehmanen@...ux.intel.com,
daniel.baluta@....com, broonie@...nel.org, perex@...ex.cz,
tiwai@...e.com, joe@...ches.com
Cc: alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
sound-open-firmware@...a-project.org
Subject: Re: [PATCH v2 -next] ASoC: SOF: Intel: Fix unused variable warning
On 5/7/20 2:27 AM, YueHaibing wrote:
> When CONFIG_SND_SOC_SOF_BAYTRAIL is not set, gcc warns:
>
> sound/soc/sof/intel/byt.c:85:41: warning: ‘cht_debugfs’ defined but not used [-Wunused-const-variable=]
> static const struct snd_sof_debugfs_map cht_debugfs[] = {
> ^~~~~~~~~~~
> Move the variable inside #ifdef
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Suggested-by: Joe Perches <joe@...ches.com>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Thanks for the patch.
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Powered by blists - more mailing lists