Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp640659imu; Fri, 4 Jan 2019 04:32:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN6FLxaUstbiCDk+NuUgZogsI0tHmWwr6kdMpLdF+iFKLK0cn0O8ias2kZIfyQ6r5UoNsZbg X-Received: by 2002:a62:ae04:: with SMTP id q4mr24954930pff.126.1546605171187; Fri, 04 Jan 2019 04:32:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546605171; cv=none; d=google.com; s=arc-20160816; b=IbyV+91D0VrT81D8aEJNPQBMQBLodTPpreBKJH28xtKcPctnsc7IGxlx0yz2pxy+Ua 4ld2siOpuB5DKfEgAbZB9va+vXkEroUEKHwA8WxP3HgEgE81sle2qiKclJsaAK9wPzJo 2EYq7E33aVOAWB1goati5GuNbprdgRWcbbpeONcKAT2o7yez2uQQQIiDuC7wV0GweFTg dvynKMgUKeAq6j9V2KLE1YX6u9f3QetLBcx4pexxD/DxljGjeqTSHBYBqD9rr8JtGQ5b 3YWSewgk9ltQZndrjbOTZZIXDucGPbml/jDq9AOQA8UGkKGRkqisfgonxSm8h+LeiE/L l7Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=I8VgPYFIQJ8MnUDgrXgRmLQsjGl3tXxpCrJo5c/rk/I=; b=ckbXGt5fxQDpPNGWVFymFe6itSOIlUSXgLCciXifsjAseO+oaGW07N5sOOYt+yXJiS ldZS0ezDkXGV7uGwpr+wzoLAl52fzpGcMoaFRMHx23v6K3twatrSfNFL9EgZIWmbrkgD he9y3s7nuTqkmdcE+CXqhmxWTgzvcS9cAr+f93Zcm6Zsm4+7DJ27WWW8P3LEviyLi+64 KHr5cIaPFfBpLrTNCNkHgYYNX47f/P+vXm3tzfUotqDJ4BgPml64QzeTVp5EVrfx/dlo Bvs05+djRUTfyMmqCmkjQCnusbRFq/OeGj+QNe7iSve7FPIrvYiUYqUb4y5cnTxS2TEi o1VQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w11si14289642plz.327.2019.01.04.04.32.20; Fri, 04 Jan 2019 04:32:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727039AbfADKaf (ORCPT + 99 others); Fri, 4 Jan 2019 05:30:35 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39604 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726169AbfADKae (ORCPT ); Fri, 4 Jan 2019 05:30:34 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3CF2EEBD; Fri, 4 Jan 2019 02:30:34 -0800 (PST) Received: from red-moon (red-moon.cambridge.arm.com [10.1.197.39]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D78CC3F575; Fri, 4 Jan 2019 02:30:32 -0800 (PST) Date: Fri, 4 Jan 2019 10:30:25 +0000 From: Lorenzo Pieralisi To: Corentin Labbe Cc: bhelgaas@google.com, khilman@baylibre.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH] PCI: amlogic: fix build failure due to missing linux/gpio/consumer.h header Message-ID: <20190104103015.GA3738@red-moon> References: <1546592917-27846-1-git-send-email-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1546592917-27846-1-git-send-email-clabbe@baylibre.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 04, 2019 at 09:08:37AM +0000, Corentin Labbe wrote: > When building on x86, I got the following build failure: Hi, what tree are you testing on and which config ? Thanks, Lorenzo > drivers/pci/controller/dwc/pci-meson.c: In function ‘meson_pcie_assert_reset’: > drivers/pci/controller/dwc/pci-meson.c:290:2: error: implicit declaration of function ‘gpiod_set_value_cansleep’; did you mean ‘gpio_set_value_cansleep’? [-Werror=implicit-function-declaration] > gpiod_set_value_cansleep(mp->reset_gpio, 0); > ^~~~~~~~~~~~~~~~~~~~~~~~ > gpio_set_value_cansleep > drivers/pci/controller/dwc/pci-meson.c: In function ‘meson_pcie_probe’: > drivers/pci/controller/dwc/pci-meson.c:540:19: error: implicit declaration of function ‘devm_gpiod_get’; did you mean ‘devm_gpio_free’? [-Werror=implicit-function-declaration] > mp->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); > ^~~~~~~~~~~~~~ > devm_gpio_free > drivers/pci/controller/dwc/pci-meson.c:540:48: error: ‘GPIOD_OUT_LOW’ undeclared (first use in this function); did you mean ‘GPIOF_INIT_LOW’? > mp->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); > ^~~~~~~~~~~~~ > GPIOF_INIT_LOW > > This is due to the missing linux/gpio/consumer.h header > > Signed-off-by: Corentin Labbe > --- > drivers/pci/controller/dwc/pci-meson.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/pci/controller/dwc/pci-meson.c b/drivers/pci/controller/dwc/pci-meson.c > index 241ebe0c4505..e35e9eaa50ee 100644 > --- a/drivers/pci/controller/dwc/pci-meson.c > +++ b/drivers/pci/controller/dwc/pci-meson.c > @@ -8,6 +8,7 @@ > > #include > #include > +#include > #include > #include > #include > -- > 2.19.2 >