Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966303AbbLQMqn (ORCPT ); Thu, 17 Dec 2015 07:46:43 -0500 Received: from eusmtp01.atmel.com ([212.144.249.242]:32703 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964961AbbLQMqk (ORCPT ); Thu, 17 Dec 2015 07:46:40 -0500 Subject: Re: [PATCH] net/macb: add proper header file To: Sudip Mukherjee , "David S . Miller" , Gregory CLEMENT References: <1450354553-18745-1-git-send-email-sudipm.mukherjee@gmail.com> CC: , From: Nicolas Ferre Organization: atmel Message-ID: <5672AEC4.70800@atmel.com> Date: Thu, 17 Dec 2015 13:47:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1450354553-18745-1-git-send-email-sudipm.mukherjee@gmail.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2241 Lines: 58 Le 17/12/2015 13:15, Sudip Mukherjee a ?crit : > mips allmodconfig build fails with the error: > > drivers/net/ethernet/cadence/macb.c: In function 'macb_probe': > drivers/net/ethernet/cadence/macb.c:2908:2: error: implicit declaration of function 'devm_gpiod_get_optional' [-Werror=implicit-function-declaration] > bp->reset_gpio = devm_gpiod_get_optional(&bp->pdev->dev, "phy-reset", > ^ > drivers/net/ethernet/cadence/macb.c:2909:8: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function) > GPIOD_OUT_HIGH); > ^ > drivers/net/ethernet/cadence/macb.c:2909:8: note: each undeclared identifier is reported only once for each function it appears in > drivers/net/ethernet/cadence/macb.c: In function 'macb_remove': > drivers/net/ethernet/cadence/macb.c:2979:3: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration] > gpiod_set_value(bp->reset_gpio, 0); > ^ > > Add the proper header file to resolve it. > > Fixes: 5833e0526820 ("net/macb: add support for resetting PHY using GPIO") > Cc: Gregory CLEMENT > Signed-off-by: Sudip Mukherjee This one is fixed and handled by Gregory here: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-December/394433.html Thanks a lot anyay, bye, > --- > > build log with next-20151217 is at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/97388463 > > drivers/net/ethernet/cadence/macb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c > index 0123646..988ee14 100644 > --- a/drivers/net/ethernet/cadence/macb.c > +++ b/drivers/net/ethernet/cadence/macb.c > @@ -19,6 +19,7 @@ > #include > #include > #include > +#include > #include > #include > #include > -- Nicolas Ferre -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/