diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-05-07 10:27:35 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-08 13:28:47 +0300 |
commit | 28d4adc4257cd2e119df17aa7e9d18cdf607f23d (patch) | |
tree | 48f5f0c5abdc209c9e32b7a40d60a8b8950fab09 /ipc | |
parent | c16e923dd635d383026a306acea540b8e0706c88 (diff) | |
download | linux-28d4adc4257cd2e119df17aa7e9d18cdf607f23d.tar.xz |
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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions