Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp303003pxj; Thu, 3 Jun 2021 07:07:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkZfvfRrcqH4dybGBmQeeKvC2PnpXRp0DbZELj1jBEj+7DPmI29YxTWBXVKhcuDbIEFm6G X-Received: by 2002:a50:f10b:: with SMTP id w11mr25458497edl.308.1622729270392; Thu, 03 Jun 2021 07:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622729270; cv=none; d=google.com; s=arc-20160816; b=ckJeEEv51vx7yd8TzBj8ATUEe2PsrBAWAZylmh+DRTKlHzqzgG5ad0R+1jz49FVGCG b7F/xM5Ju/ZXme38Wm1dkPyR0ElZcA6CqyPzmiCIWfxLM4CMhlcJvtq9yIlLYQQGDrMz CTlcQyc6DQSSVZW8moXEtikyF5FUbcCX9Mz3+L2ZLdbhdHmtT1KhMJLw/XrrnrTMoVCq pYTUU/DApRMwuqYsSj18Ov0lrzy67b2rPKAzDy0wN32wqqWiOtrqeyWVAbA0f9pafKow xU8h2EtNQRdWC2ANtQqAefpkB0oi+0S5sxpFUdCw9lG4xdrqzwDMLmgrjzHTgfP0DU0/ ba8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=sYuxL4nj9tVsbiIRkQqNrv2LxSzvaJsLhi/PndX88+o=; b=F8i32AHn0xcsIPUpdfczsk+B2mzF3WKox+3pa050OpPVps8Af2/xOVxAWu4pWgBmgm eVyzL0U54ltYpp9sspGP7FU6O/faoYFNYQeGyqskVgigsZN8qbJ/e544ox7pcQb5u7lO XpJRRSqneZXhfg01Kc8qm1TGUIQ0kuzxX6mFKMgK4BdVxWrCzp/QAp3wIy/O9O26P34D hGiVviFWOXPMeA6YwqJ4w0tMN1K3JCiOYlaJa00TkiESp7SvHpxyH+JkLWQ7+KNnwcOo UMcI44GevTns/A/rIWOMfz5u8bMX4MVYWemvSbhBBnf/qKPN61CSYP4+i/ct407IDwQq ewDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZtEg9IsW; 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 m7si2554992edq.235.2021.06.03.07.07.26; Thu, 03 Jun 2021 07:07:50 -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=20161025 header.b=ZtEg9IsW; 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 S231542AbhFCOGm (ORCPT + 99 others); Thu, 3 Jun 2021 10:06:42 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:33426 "EHLO mail-lf1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhFCOGl (ORCPT ); Thu, 3 Jun 2021 10:06:41 -0400 Received: by mail-lf1-f50.google.com with SMTP id t7so1858671lff.0; Thu, 03 Jun 2021 07:04:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sYuxL4nj9tVsbiIRkQqNrv2LxSzvaJsLhi/PndX88+o=; b=ZtEg9IsWRo7g04mUoycUDEyt6DDSLHQAFrvFrzdzcdbtfwMKzYposnrxRL/kwFrJ0J LmquvBz1HzGgJbD2ji9jjfa6LtzjhTnECsLxJixm/xUZPCNihkfrq3W8GwP9xaGRPDs7 Zw1zVrlx7chudghemkXHjL2tiBNpYsoREzojdxiTJQtGhUgX5l20eYoIwaQo8JoYRgv5 7sIdAWki6jemAdCJyh2nSnwdOustBLfwppFv6ItdLTwtLUQljwQm86+GFDlgY69wBCGY 56+1wWHuFR2kgEqXTMxJ7pukvOweVROGaUVxfKVeNCYEj/Jrd4dm5axA0vso6wNZPEWl CyKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sYuxL4nj9tVsbiIRkQqNrv2LxSzvaJsLhi/PndX88+o=; b=G9sIgXqJaAeBP0s7Wg6wXeesRN4IbGUa85op9tWSJT56W02k2+c0QSjQ8ZMJCt4vyW F+IRfot45JrAq0RtFojwTP2rW6NHptNMIZIkQIooKxodd73vCCgfcPdci1T/DEwC+YZ/ Qi+Y3PNM1qMItEeQYIRKA106q20y37cmPfD1JKpyCc5VuYtwD2Nla5msbg7+I/k53771 Ll3CecXZuHrzJt8tofShWjkJXbREqWjCEYE8USb5tINISq6CZs1Sfas4eufq2Mns7fjB J2v7lKAvcsdTPuErzyfQCpFoUXwc6VcR7DvOhWDP/jXl1mHmPa0cVbFwEe5seJ9FlDIc Ms4A== X-Gm-Message-State: AOAM533VUdxf0f1P17+kupQnCt3hlGwbEIBOAmAZfMt2EqmGHixqFFjq 1kE2Rm3c69zMvmdmjDdqK3Fos2qRzMI= X-Received: by 2002:a19:ca5d:: with SMTP id h29mr17369196lfj.370.1622729020667; Thu, 03 Jun 2021 07:03:40 -0700 (PDT) Received: from [192.168.2.145] (79-139-170-222.dynamic.spd-mgts.ru. [79.139.170.222]) by smtp.googlemail.com with ESMTPSA id w21sm327553lfu.174.2021.06.03.07.03.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Jun 2021 07:03:40 -0700 (PDT) Subject: Re: linux-next: build warning after merge of the tegra tree To: Thierry Reding Cc: Stephen Rothwell , Colin Cross , Olof Johansson , Linux Kernel Mailing List , Linux Next Mailing List References: <20210603103507.304b7626@canb.auug.org.au> <8d8f947e-2ba4-f7b8-cb85-dcee940c96b4@gmail.com> From: Dmitry Osipenko Message-ID: <8966e56c-4da4-b360-7ce6-19d0af114bb7@gmail.com> Date: Thu, 3 Jun 2021 17:03:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 03.06.2021 15:18, Thierry Reding пишет: > On Thu, Jun 03, 2021 at 05:01:48AM +0300, Dmitry Osipenko wrote: >> 03.06.2021 03:35, Stephen Rothwell пишет: >>> Hi all, >>> >>> After merging the tegra tree, today's linux-next build (x86_64 >>> allmodconfig) produced this warning: >>> >>> WARNING: unmet direct dependencies detected for TEGRA210_EMC_TABLE >>> Depends on [n]: MEMORY [=y] && TEGRA_MC [=y] && ARCH_TEGRA_210_SOC [=n] >>> Selected by [m]: >>> - TEGRA210_EMC [=m] && MEMORY [=y] && TEGRA_MC [=y] && (ARCH_TEGRA_210_SOC [=n] || COMPILE_TEST [=y]) >>> >>> Probably introduced by commit >>> >>> 08decdd5b448 ("memory: tegra: Enable compile testing for all drivers") >>> >> >> Thank you. This is a new warning to me, apparently this case wasn't previously tested by kernel build bot. >> >> Perhaps this should fix it: >> >> diff --git a/drivers/memory/tegra/Kconfig b/drivers/memory/tegra/Kconfig >> index 71bba2345bce..3f2fa7750118 100644 >> --- a/drivers/memory/tegra/Kconfig >> +++ b/drivers/memory/tegra/Kconfig >> @@ -47,7 +47,6 @@ config TEGRA124_EMC >> >> config TEGRA210_EMC_TABLE >> bool >> - depends on ARCH_TEGRA_210_SOC > > Why not just add a || COMPILE_TEST like we do for TEGRA210_EMC? Because > TEGRA210_EMC being pulled in under COMPILE_TEST (and then pulling in > TEGRA210_EMC_TABLE which is missing the alternative path) seems to be > the root cause for this. The anonymous Kconfig entry is unavailable by default, it can be only selected by other entry, IIUC. In our case the TEGRA210_EMC_TABLE is selected by TEGRA210_EMC, hence additional dependencies aren't needed for TEGRA210_EMC_TABLE.