Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966197AbbLQOKx (ORCPT ); Thu, 17 Dec 2015 09:10:53 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35167 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964929AbbLQOKv (ORCPT ); Thu, 17 Dec 2015 09:10:51 -0500 Date: Thu, 17 Dec 2015 19:40:41 +0530 From: Sudip Mukherjee To: Gregory CLEMENT Cc: Nicolas Ferre , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "David S . Miller" Subject: Re: [PATCH] net/macb: add proper header file Message-ID: <20151217141041.GA726@sudip-pc> References: <1450354553-18745-1-git-send-email-sudipm.mukherjee@gmail.com> <87twnhs0vc.fsf@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87twnhs0vc.fsf@free-electrons.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1635 Lines: 37 On Thu, Dec 17, 2015 at 01:41:59PM +0100, Gregory CLEMENT wrote: > Hi Sudip, > > On jeu., d?c. 17 2015, Sudip Mukherjee wrote: > > > 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. > > > A proper fix already has been posted along with the proper device tree > bindinsg too: > http://marc.info/?l=linux-netdev&m=145034590619620&w=2 Thanks, just compiled with it and the build error for which I posted this patch is now gone. regards sudip -- 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/