Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp944296pxb; Sun, 10 Oct 2021 15:59:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7z7S4n5qrS4sxpuWTPloZ5voVmuKVGixJeKReBfrAf9zoxBcNMDNovZtZAvC8fKW0PkCR X-Received: by 2002:a50:9e02:: with SMTP id z2mr8692577ede.12.1633906766037; Sun, 10 Oct 2021 15:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633906766; cv=none; d=google.com; s=arc-20160816; b=QucfHa9KlpOWajpc/ENw1w/9jaitMMYrifvp1txd5PPVv+MVaAs0PfceGDye/M+Jm/ siBUTQ0T18cTHvWlW00VAp3EmXhbAeW151SGXQrWnX4vVr6SsQyb5GEzkh8I9iS+Uw1f 9fo9AFTJznn5AlKQrT+gFngbN7sLwDzeoQwRRYA10DJ91XuKMwmRv6YRrieN1QVKPvn4 mQGd9Mr2LHRTdViHeP72UDsUSwBbmws1B9LH04q4c07vS/zaE95llAT/ypUwpkxrpfXD X/zecmcP2s5jqthH0ffaDq24JcDL+n8jEp+/g8jwDAwjssSCiNdgYiWf96WHSYat4xJG TdIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=jJbVzM7l1D7JuwqpAtI5nI7LnVZbvtzYKA+zk7EWtHU=; b=ayIvMr4DsPvFpnO7Fx5JZia6zuGD6pE5EcLPuMFSDHuDUVcecV8g+YljSsWOWttr5J 2tpk36lz8J0alJpGruMEOAdvz3HZtjrfeiJtWcYp70nRV+KteBmAbIipSxB2NpjJO2MU 3ElIJShNhPpRitckKHkk8DU4jkpa6oWZ4BfYmd31uPCymeqsSl6yPWkJTjPe6Py5AAMl vOlvS90zcHbDBTf9wLgMOZTI95x+qo5VrVUsB8cmpZ8ASxjmXop74QQU8iGe8OEl0t8w Fia1LLSKzPRmWDJ4OE+eufBiAsBrP6CEoDwFS4s33j0HdXy+CeRvdm7TkpiLXrzBAe90 t08w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VtRSwv+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk24si9398383ejb.480.2021.10.10.15.59.00; Sun, 10 Oct 2021 15:59:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VtRSwv+T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232864AbhJJV6e (ORCPT + 99 others); Sun, 10 Oct 2021 17:58:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231343AbhJJV6d (ORCPT ); Sun, 10 Oct 2021 17:58:33 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AC32C061570 for ; Sun, 10 Oct 2021 14:56:34 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id r16so14713948qtw.11 for ; Sun, 10 Oct 2021 14:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jJbVzM7l1D7JuwqpAtI5nI7LnVZbvtzYKA+zk7EWtHU=; b=VtRSwv+TAjnM/7UgaXIXwuA4sdNX3Yyrgv0NaB8ScyZrroWaYPWsvfZfwY2yLQN7pE E0SJCYR5fOR5SulTnrIb417GrpSYo0DcyPvvLMCLdkdEJ7y6DT4w+0Acl4q+e21gW1t6 AIh/YSakbWaNy+is/VTAFywLZHqjLupRNA4RKD3fN2vim+PARDioldLQHZiaqZDNSVK1 UoivOuewKg9BcZjWmcOje5CLAjrY7fTEVSSABQ1z4H28S7nkx1ul+I3nS3+5BUR422MH 8lXFbYCpJGjtPHsb8tvI+kYFdWqRLy81G3r0vQX9ATQhiSGa6ALOo3TniCpPP7GdyORq 4Nmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=jJbVzM7l1D7JuwqpAtI5nI7LnVZbvtzYKA+zk7EWtHU=; b=5xVG1RYWIP9jUh66stuiMabsCkJ6M3Ry9nBGVPXwY7xf1xe9FTgTTDU5d6+tk1sfb0 EeB5Ql8TT7tvTFnSEFZchNrWY35JmpZcKvyuwMDh3RwPfgp1Fp5GARVbZpE+43BBnzzU P/1zrnoRx8X3G3judcV7ecJn/9PguXesiNifHUpIyCNJWTXg8czzC54MZ6LoXHdN/C9F 29239j+DJfqgJsz8i3eo33AUUF1L2zj2qf4qb+h+560eHoJVHK+7Jzx3KwkUI4xXEcM2 iAOMRvh1dACI2LgacIviTPoZ7K43TdjdApzu8s6yYnlK/VqHLbet3HVVg0P8yzUBamt9 ze2Q== X-Gm-Message-State: AOAM5335Qsvn3QFeiLmh0ybSbHZ7ttCD0QdfHr8ECresbrqL62/Kq5DW BoEVVWN1Hy5OgMarPLWphsmEiNsH5Gmb9Q== X-Received: by 2002:a05:622a:11c9:: with SMTP id n9mr11536236qtk.295.1633902993496; Sun, 10 Oct 2021 14:56:33 -0700 (PDT) Received: from localhost.localdomain ([67.8.38.84]) by smtp.gmail.com with ESMTPSA id t11sm1851951qkm.92.2021.10.10.14.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Oct 2021 14:56:33 -0700 (PDT) Sender: Julian Braha From: Julian Braha To: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Cc: srinivas.kandagatla@linaro.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, ajitp@codeaurora.org Subject: [PATCH] ASoC: fix unmet dependency on GPIOLIB Date: Sun, 10 Oct 2021 17:56:27 -0400 Message-Id: <20211010215627.17869-1-julianbraha@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- sound/soc/qcom/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/qcom/Kconfig b/sound/soc/qcom/Kconfig index cc7c1de2f1d9..8c5c1ed54bc7 100644 --- a/sound/soc/qcom/Kconfig +++ b/sound/soc/qcom/Kconfig @@ -38,6 +38,7 @@ config SND_SOC_LPASS_SC7180 config SND_SOC_STORM tristate "ASoC I2S support for Storm boards" + depends on GPIOLIB select SND_SOC_LPASS_IPQ806X select SND_SOC_MAX98357A help @@ -141,7 +142,7 @@ config SND_SOC_SM8250 config SND_SOC_SC7180 tristate "SoC Machine driver for SC7180 boards" - depends on I2C + depends on I2C && GPIOLIB select SND_SOC_QCOM_COMMON select SND_SOC_LPASS_SC7180 select SND_SOC_MAX98357A -- 2.25.1