ASoC: fix unmet dependency on GPIOLIB
authorJulian Braha <julianbraha@gmail.com>
Sun, 10 Oct 2021 21:56:27 +0000 (17:56 -0400)
committerMark Brown <broonie@kernel.org>
Fri, 22 Oct 2021 00:55:24 +0000 (01:55 +0100)
commit6cace797f1a8d54ecb42a3d327cbc0b231114ed0
tree57ba1bc27c0716786e2abbe33fd45bd8539fa4f0
parent324081ab79b7b45e9534304a99a753db005aa11d
ASoC: fix unmet dependency on GPIOLIB

When SND_SOC_SC7180 or SND_SOC_STORM is selected,
and GPIOLIB is not selected, Kbuild gives the following
warning:

WARNING: unmet direct dependencies detected for SND_SOC_MAX98357A
  Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && GPIOLIB [=n]
  Selected by [y]:
  - SND_SOC_STORM [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_SOC_QCOM [=y]
  - SND_SOC_SC7180 [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_SOC_QCOM [=y] && I2C [=y]

This is because SND_SOC_MAX98357A is selected
by SND_SOC_STORM and SND_SOC_SC7180, but
these config options do not select or depend on
GPIOLIB, despite SND_SOC_MAX98357A depending on
GPIOLIB.

These unmet dependency bugs were detected by Kismet,
a static analysis tool for Kconfig. Please advise if this
is not the appropriate solution.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
Link: https://lore.kernel.org/r/20211010215627.17869-1-julianbraha@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/Kconfig