Skip to content
Unverified Commit 28d4adc4 authored by YueHaibing's avatar YueHaibing Committed by Mark Brown
Browse files

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: default avatarHulk Robot <hulkci@huawei.com>
Suggested-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200507072735.16588-1-yuehaibing@huawei.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c16e923d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment