From patchwork Wed May 30 21:51:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137301 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp5835873lji; Wed, 30 May 2018 14:52:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLNgKryXzlIC5gnRCAzqCos2g80LvRoxVl4cx1QQWuq9YnW/CGYW8DTRiaiuZgtVRb1UEaN X-Received: by 2002:a17:902:a703:: with SMTP id w3-v6mr4526648plq.111.1527717153938; Wed, 30 May 2018 14:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527717153; cv=none; d=google.com; s=arc-20160816; b=jeZR0d3Ai7+kMsIbPpNqFuGHLGpxd0D1YySIazx9Sk/1F3Cm9yyxogg9qQl+kotXZV sKvdN6vGejPoWmfK8/CQNtUC9TO3IWNz9khdvNyGHen+zruLDuy4+1w5ExBPoUUTxYka /WhXMOC3gNmy65XSIdqb7Hb8tT8JjdCL5O3vD+LtnTQ3yoKzUpElXiAzwjTca+BGbLmL BBWnZOZqSiepc5GGKSNEqPNqJExHUKSSqQOaENsiWEFQp3HHT5hHk6BorTnnrEFtHHz5 TL71h8Ff75WBpi989fgcSfQ2Aipg47f9hBOXwZF5sf3F6EDEMQJJw0Vh5H9vat88M65W QSdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Uv6YGwiG8z2dcJjOol9/QVH1WN+qsvN0377iPxL4ewk=; b=JskjN81GZElzQL+x9eyDXXe/m+6V1OQOX8p0hM7se8yj8zNelHB58Mf7BobHlfes4Y iRN7BXf5fTbW39yBF+NzBOu8udcqEjw8UKl0koxuDOEwj4ZNGuolUxo2o6lTwKZOA8jD 55ZdsUXH8miCByWdjZJwtdO3H6Jefhi4dV5fw+iPNIhgGshpKm4WVp/l4NwuOdiGFqHt DXyAmIgV22B1qYAo3KyCLi2/A8FDALyB7iRBLhxqLenOBVMY90K7VV9gBjYyOZPZOyai dbmrM17mCpM2OCUd7YcGasyNvwA7syz8xeG/paqIkD12YNfzG9oXVf12YRXLUBUwt+us xAIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14-v6si35793443plq.439.2018.05.30.14.52.33; Wed, 30 May 2018 14:52:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932242AbeE3Vwb (ORCPT + 5 others); Wed, 30 May 2018 17:52:31 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:53731 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932222AbeE3Vwa (ORCPT ); Wed, 30 May 2018 17:52:30 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0MSYbs-1fnXfG2vu0-00RUx6; Wed, 30 May 2018 23:52:14 +0200 From: Arnd Bergmann To: "David S. Miller" , Grygorii Strashko Cc: linux-gpio@vger.kernel.org, Florian Fainelli , Arnd Bergmann , Ivan Khoronzhuk , Keerthy , linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ti: cpsw: include gpio/consumer.h Date: Wed, 30 May 2018 23:51:54 +0200 Message-Id: <20180530215212.1151415-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:VyW7q19B8esGnkW2ldhvzK7x/JoYgcUdgTuPryv9wT+m27vIc6U AaDoLgodhrfnl1fGTk9a/XhE5+v1xEvujMxvCcEyfZw77Y1Ktp4cdMfYSMRVQSkqMm7769w V2bxR2BLVd+7T5GpPf6i+7osZW/b5LRkPVZIf9Qu5FIcW0odZQ2gM20i08WAGrihPAzkiXo lOEoI0j+PVx7RWBkxIqfA== X-UI-Out-Filterresults: notjunk:1; V01:K0:yPMVF2pMrDA=:7W0RkLDHqw+b0BHeYbhFxU MBxi1FiwBGy7hU5xrYP9YI/DBpYsrMtsjbtKPk9mGyzRgABSWj3qM7Ln28wQ0A8mjHj+fptdN 8FPCtrS3ZrZTvApRISSvaw61akMjxnS7pDY3KyWZ3M8sOn4GUA0i1TfUefmGBci3Cb7RmpWhs eahqtzdEvYfdWty/ihUplfpJ6QBt+92DNWfDSGdn4keCNeU+FfEl6ap76nVLm76zO1X7yYTU4 UwzE80KUsl4IBgzDpAemya4gdTc6x2wN4I+C3MAi4Gy+6pBoAU7IGxXl/TgeIyOgp6kXqJwPO vtqAqSsFjfmtdt8JNGpEFJ8ESooBZSZ7izxOYPH9XxBcUTvRghBs8DrowEoh9rVUPCs7lkgfs 3i4V/PlJzW4Y7D7gh7qhpNx7wl+1HmHiPLxLA3Oh7Bd2/0STFizeLMpu5O0xzSzV4SbfxEG+R mLAW7XYMHeh/DekpMQsDtv2MlQ52qQ/0DksR5xomIwkPBzoBE39bN6BFsZ0z2r65QVp/NP16G 0NpLKUCdEV8TJ34pUQkKKhRXQqC/IQLZRRlesBehbufT5O5f7tib2u8XK5fQz+Cm534K8xtlQ AeUwaL880nCTColT9UYJvQQpaaOLMSnLvJrRQWO48XXQIE7pJ2sTDGoZnYXf96beVY9HLSU74 xss1Ajuisv4WLWoekmUNI8kacbi7Rli/0CQCPkeLTraDb+nPkoA+29qQ26nh1xQuEmXc= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org On platforms that don't always enable CONFIG_GPIOLIB, we run into a build failure: drivers/net/ethernet/ti/cpsw.c: In function 'cpsw_probe': drivers/net/ethernet/ti/cpsw.c:3006:9: error: implicit declaration of function 'devm_gpiod_get_array_optional' [-Werror=implicit-function-declaration] mode = devm_gpiod_get_array_optional(&pdev->dev, "mode", GPIOD_OUT_LOW); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/ti/cpsw.c:3006:59: error: 'GPIOD_OUT_LOW' undeclared (first use in this function); did you mean 'GPIOF_INIT_LOW'? mode = devm_gpiod_get_array_optional(&pdev->dev, "mode", GPIOD_OUT_LOW); Since we cannot rely on this to be visible from gpio.h, we have to include gpio/consumer.h directly. Fixes: 2652113ff043 ("net: ethernet: ti: Allow most drivers with COMPILE_TEST") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/ti/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 643cd2d9dfb6..534596ce00d3 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include