Re: [PATCH v2 -next] ASoC: SOF: Intel: Fix unused variable warning

2020-05-08 Thread Mark Brown
On Thu, 7 May 2020 15:27:35 +0800, 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[] = { >

Re: [PATCH v2 -next] ASoC: SOF: Intel: Fix unused variable warning

2020-05-07 Thread Pierre-Louis Bossart
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[] = {

[PATCH v2 -next] ASoC: SOF: Intel: Fix unused variable warning

2020-05-07 Thread YueHaibing
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