ASoC: soc-core: Fix -Wunused-const-variable warning
authorYueHaibing <yuehaibing@huawei.com>
Tue, 13 Aug 2019 14:25:01 +0000 (22:25 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 15 Aug 2019 14:03:21 +0000 (15:03 +0100)
commit0faf1237c60a3791d7ff32035d3097d3e022e68f
treea6e5ef458810140170fcba7d05c25a4f7ba09065
parent9c6c417d95d83999c16965186f6e755ad8a8b658
ASoC: soc-core: Fix -Wunused-const-variable warning

If CONFIG_DMI is not set, gcc warns:

sound/soc/soc-core.c:81:27: warning:
 dmi_blacklist defined but not used [-Wunused-const-variable=]

Add #ifdef guard around it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190813142501.13080-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c