]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb74885e3c03f8e211d047cdf9e8c7529eb0e54fd
treea6e5ef458810140170fcba7d05c25a4f7ba09065
parentf936b19fbe8a8ecddbffad7e53fd4da23bb87a16
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