OSDN Git Service

ASoC: SOF: Intel: Fix unused variable warning
authorYueHaibing <yuehaibing@huawei.com>
Thu, 7 May 2020 07:27:35 +0000 (15:27 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 8 May 2020 10:28:47 +0000 (11:28 +0100)
commit28d4adc4257cd2e119df17aa7e9d18cdf607f23d
tree48f5f0c5abdc209c9e32b7a40d60a8b8950fab09
parentc16e923dd635d383026a306acea540b8e0706c88
ASoC: SOF: Intel: Fix unused variable warning

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@huawei.com>
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200507072735.16588-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/byt.c