Re: [PATCH] ASoC: fix unmet dependencies on GPIOLIB for SND_SOC_RT1015P

From: Tzung-Bi Shih
Date: Thu Oct 28 2021 - 22:20:52 EST


On Fri, Oct 29, 2021 at 8:12 AM Julian Braha <julianbraha@xxxxxxxxx> wrote:
> WARNING: unmet direct dependencies detected for SND_SOC_DMIC
> Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && GPIOLIB [=n]
> Selected by [y]:
> - SND_SOC_MT8192_MT6359_RT1015_RT5682 [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && I2C [=y] && SND_SOC_MT8192 [=y] && MTK_PMIC_WRAP [=y]
The block is not for RT1015P but it can also be fixed by the patch.

[...]

> This is because these config options select SND_SOC_RT1015P
> without selecting or depending on GPIOLIB, despite
> SND_SOC_RT1015P 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@xxxxxxxxx>
Acked-by: Tzung-Bi Shih <tzungbi@xxxxxxxxxx>