Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4436857pxb; Mon, 21 Feb 2022 21:34:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+18sn+2qaw0cA1kRbI4fK/MhWPYOCHKVOx0fK+3fzAQDI9g6nQwl6Ght1DgMnYpCGIJgb X-Received: by 2002:a17:90b:4cce:b0:1b9:86dc:8b69 with SMTP id nd14-20020a17090b4cce00b001b986dc8b69mr2454993pjb.56.1645508090548; Mon, 21 Feb 2022 21:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645508090; cv=none; d=google.com; s=arc-20160816; b=TRyFbkUCcrMulAk2KKu9J9RW6BtKFMxD8Viz69xuyT7nC54yS0+kPOLP8yJzR9QU8K 3iwSmwQuhp6RImorPJhrzVqoKix7Gdso68Y3o5Jvy2gkr4xd4axSpwupA7dpHG3a41W7 q7crGnw6lWiu8hrBcjaZodku/5M0fS3VjGY8L1W2Fr8dSGNadtaBzapn9/luO+vkG8bm YHoKLf2baCDIM6k7FolED5uHVwWxcpPSG9474dikj0q7ivK6PsVRztPCmcxDiXg/N2r2 jdVIbeXOCqSbiMfp23LqVx/GqxMGV8cMyJGXQL4UQprtYYj2y+bUnGWgZ2uzOEgQOleB O+SQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qVIvM8XMUNt/Rk7THonaqhFJWV2CicLA8ruTI3y7jDI=; b=eSmw9xiTkX6WfU8TeDT2xo4FOoW2D7BBs2oMjkBsfvv0BRFB8B1iQkUObhcgtPUSQR mLHnihmvdyxQguFE4eZ7qsQ6MiOBVwINqL3j9Gv+p3++SDzuAugdTUywPKGIvHCII6dS m54iFGSgI5gP4uJOW0bZD0tDjBF48fYjDnX8p0/10K35UTS6+Qfm8fkmFJv3VLrdVo7j QhfFoOHz6+z/D1/VZOrwMWowMIArXv1idYD7Bfw1rVTxUa4poE0kjsE98NbtkvsL3KIk h7XmBn4/z56TJYmlfSzu16+JlR0kx6bkwWKoLtZXyjq9oFG61Qa+0idV/18vawOyOY7W wUjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L2sbK57h; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y16-20020a17090a6c9000b001b8e0573361si1207596pjj.54.2022.02.21.21.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:34:50 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L2sbK57h; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E5A71DA47; Mon, 21 Feb 2022 21:02:25 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353113AbiBUJsM (ORCPT + 99 others); Mon, 21 Feb 2022 04:48:12 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351186AbiBUJmN (ORCPT ); Mon, 21 Feb 2022 04:42:13 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10F1B3E0EF; Mon, 21 Feb 2022 01:17:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 93D93CE0E90; Mon, 21 Feb 2022 09:17:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82FD9C340EB; Mon, 21 Feb 2022 09:17:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435064; bh=bFy7XXY2ACITulTCUKRC7dk/O8gBIpyeMZ3F7CKr/7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L2sbK57hD1MNKO96n15UxRyR1WhJHbHaNxUOXFqeT4Os2ni6F7GaDDvl+pRPX+rCW CTeoVZ2MB88d0UpTf++XX4j0aHWTT/4GM3wCTOYdKorlQu5ABox0AOrgIvIHoGCpOc z4Se9oKHcUFqVMKda3PiQs0Xe/MTBqmk8EJcTzS4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julian Braha , Tzung-Bi Shih , Mark Brown , Sasha Levin Subject: [PATCH 5.16 031/227] ASoC: mediatek: fix unmet dependency on GPIOLIB for SND_SOC_DMIC Date: Mon, 21 Feb 2022 09:47:30 +0100 Message-Id: <20220221084935.883998737@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julian Braha [ Upstream commit 579b2c8f72d974f27d85bbd53846f34675ee3b01 ] When SND_SOC_MT8195_MT6359_RT1011_RT5682 is selected, and GPIOLIB is not selected, Kbuild gives the following warning: 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_MT8195_MT6359_RT1011_RT5682 [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && I2C [=y] && SND_SOC_MT8195 [=y] && MTK_PMIC_WRAP [=y] This is because SND_SOC_MT8195_MT6359_RT1011_RT5682 selects SND_SOC_DMIC without selecting or depending on GPIOLIB, depsite SND_SOC_DMIC depending on GPIOLIB. This unmet dependency bug was detected by Kismet, a static analysis tool for Kconfig. Please advise if this is not the appropriate solution. Signed-off-by: Julian Braha Reviewed-by: Tzung-Bi Shih Link: https://lore.kernel.org/r/20220117050324.68371-1-julianbraha@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/mediatek/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/mediatek/Kconfig index 3b1ddea26a9ef..76f191ec7bf84 100644 --- a/sound/soc/mediatek/Kconfig +++ b/sound/soc/mediatek/Kconfig @@ -215,7 +215,7 @@ config SND_SOC_MT8195_MT6359_RT1019_RT5682 config SND_SOC_MT8195_MT6359_RT1011_RT5682 tristate "ASoC Audio driver for MT8195 with MT6359 RT1011 RT5682 codec" - depends on I2C + depends on I2C && GPIOLIB depends on SND_SOC_MT8195 && MTK_PMIC_WRAP select SND_SOC_MT6359 select SND_SOC_RT1011 -- 2.34.1