From patchwork Wed Dec 4 17:45:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 180810 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp912935ile; Wed, 4 Dec 2019 09:45:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwfXl7XitoX/EEuxVahjA4V4F7cWjeK0oMI6sT28XZ2KjMVfVQdKNVvF9yNYmUXBVZLx2H4 X-Received: by 2002:a54:4781:: with SMTP id o1mr3468864oic.117.1575481547761; Wed, 04 Dec 2019 09:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575481547; cv=none; d=google.com; s=arc-20160816; b=u5OxPVAkkO4oRGXJDv2fhVepVlfi0NXtsSLrZX+sYpQ6B9br0NhdOuae6DgiN48CkM PW6LDPmoLmz+lpyUVxK/xLyqueQtsJVuYMZ0akq3l+i7FVDBv0l+r0OSBdg+nps414Dy jeKEqyzpOAq/k3NDUhjBHux4ARFCJvMoHHmWmBDmAA/2OyTLiKjJHwbLCT7sAqmqFFHr fPjF9GWn6RTBJhCR2BBKQV8unJKR+Y6jyjIx+a6OXuc4+A1zIME1ZhVICR5OsWPYSiQH kMBWTC/PK7EicVF3qhaaT9bkx2zTUgxqc7YmcF+WnaCmzge3G6L83KG+pq7GNx6N+sBc 4ZlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gxbZ2CIIPVbvS4ohqvpxPEVJEByegcE8HUnwN5BOVvA=; b=ebm8pkMYGGuX5EBMmLm8vCEr6Q8uxOXhdlbAkR5z+90QwGhWKqRzLiM7tClyJ9Uvok 74e4pxy3c1iIVfWEW0xhHVfts8gn2WdY1ucJvLgVh71d9F4H9emAfpwbHzfcmGvB5MAn 0AJIClZNbUCFkfmw4WlYq6UkRawP+HrDIXvc9pJOkj1lTWsTkoyWJ/O7+VxOoL7UJ8j2 5nLozcccAQ8XRJP7EiabeREjCT37+CRKy8eEvYiSmf29yGDq6QBwYapbx04mfxBxg1iq h/AecDJK5WRss1esO+RFPVsyQgPH27DVYiALhHAnLGF6UhRkoHOqV55eyXQsSvzhs5Ij xuEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="uOW/oMMP"; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si3333086oti.167.2019.12.04.09.45.47; Wed, 04 Dec 2019 09:45:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="uOW/oMMP"; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728197AbfLDRpq (ORCPT + 9 others); Wed, 4 Dec 2019 12:45:46 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:47726 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727852AbfLDRpq (ORCPT ); Wed, 4 Dec 2019 12:45:46 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xB4HjcK2127869; Wed, 4 Dec 2019 11:45:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1575481538; bh=gxbZ2CIIPVbvS4ohqvpxPEVJEByegcE8HUnwN5BOVvA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=uOW/oMMPSTymicdBBIWztbG9y5JeVgV/1dthB+jNeSdh2tQAOAwwA+xYU5MjnuruW CfNvC3sKOMLu+r3hJLXoU3GmPNrs0O13KE7uOtD7/SHgrYRpjR0+CaSA1gSSfwoUiv +ra6sNIZ4pkDZcQ9r1Kd3BlUOAlxbjsL3QOP6LX0= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xB4Hjcbo121173 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Dec 2019 11:45:38 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 4 Dec 2019 11:45:38 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 4 Dec 2019 11:45:37 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xB4Hjb55034557; Wed, 4 Dec 2019 11:45:37 -0600 From: Grygorii Strashko To: Randy Dunlap , , "David S . Miller" , Tony Lindgren CC: Sekhar Nori , , , Grygorii Strashko Subject: [PATCH 1/2] net: ethernet: ti: cpsw_switchdev: fix unmet direct dependencies detected for NET_SWITCHDEV Date: Wed, 4 Dec 2019 19:45:32 +0200 Message-ID: <20191204174533.32207-2-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191204174533.32207-1-grygorii.strashko@ti.com> References: <20191204174533.32207-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Replace "select NET_SWITCHDEV" vs "depends on NET_SWITCHDEV" to fix Kconfig warning with CONFIG_COMPILE_TEST=y WARNING: unmet direct dependencies detected for NET_SWITCHDEV Depends on [n]: NET [=y] && INET [=n] Selected by [y]: - TI_CPSW_SWITCHDEV [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_TI [=y] && (ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST [=y]) because TI_CPSW_SWITCHDEV blindly selects NET_SWITCHDEV even though INET is not set/enabled, while NET_SWITCHDEV depends on INET. Reported-by: Randy Dunlap Fixes: ed3525eda4c4 ("net: ethernet: ti: introduce cpsw switchdev based driver part 1 - dual-emac") Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/net/ethernet/ti/Kconfig b/drivers/net/ethernet/ti/Kconfig index 9170572346b5..a46f4189fde3 100644 --- a/drivers/net/ethernet/ti/Kconfig +++ b/drivers/net/ethernet/ti/Kconfig @@ -62,7 +62,7 @@ config TI_CPSW config TI_CPSW_SWITCHDEV tristate "TI CPSW Switch Support with switchdev" depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST - select NET_SWITCHDEV + depends on NET_SWITCHDEV select TI_DAVINCI_MDIO select MFD_SYSCON select REGMAP