Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3815759ybi; Mon, 29 Jul 2019 13:10:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNV4JDvEGSu1yekCYI6AOhtgbH2Xm8tyEx/bJg6BvVyOrA5ak4yrzBC8/jLj55Y/QxCfdp X-Received: by 2002:aa7:8d98:: with SMTP id i24mr38782973pfr.199.1564431028510; Mon, 29 Jul 2019 13:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564431028; cv=none; d=google.com; s=arc-20160816; b=KSJJtmFJTCc+b9Ol+S16TV0UsTinv6w5BJ9IYLwkuQC4bgezapQrN2a87Ri2P3k6uH hK5D5rhoNfshsNsjz8S4s6pS6a2S5l/aBRBODPRR8YFdKDumO3jfcYgPfcwhskfU3Kr3 Oebw07f71YrvTDUCH90u90IsspO/iye96/n54maQ9RL4U45oZLbRcx6w5X1P6a9ytTz1 G0/Gb4aKuuj0HPgbr5W0mEqhUbSnt1sB9erd4scLRZTenATdznftn4K/Tu0D01dil/+K ctlh8OTm7I+LEB8i2pThzpPzq3OdozWvn++jZhr9jnyNifxaHkwkhwfiUDG60CHF8WNy 1KVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xorfIHtMNkq24qOxqTjDNBFbKK4u8eJbQCJojsCRQ18=; b=hNifaOaKlIXYBywbyBJgYPMRFEBpEZhWT5wYgn4aRsMlI3czhfVrK9Pze00pOd5LSK NKVwpqc4YoCIX7EFpy/r2xSMvz37HqyBOCkol4+BekaHLqW2fEMrVsTepGd02r7tZA7x XUjiyMTVzZxKldl6RdeDXPpFyxyDFceKcqmcUVztTsaNhaLm6tiIRB7rP7gQiCx7Gzaz ggGYbkJAexncuyaMrI0ExVc0dAx0RufoouvzgKtbzAI2u98szRWscOH6ioicgz9d1vNX 52C0yFeTedQ7urlyXMqldXSZ1Y0QS6W9LGHQkXuX97dv+vQKkCY5nvwmHHANZrUnoyjT CuAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kbztkj0Q; 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 b20si27157548pgk.437.2019.07.29.13.10.13; Mon, 29 Jul 2019 13:10:28 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=kbztkj0Q; 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 S2388695AbfG2ThW (ORCPT + 99 others); Mon, 29 Jul 2019 15:37:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:52062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387593AbfG2ThU (ORCPT ); Mon, 29 Jul 2019 15:37:20 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F09A1217D4; Mon, 29 Jul 2019 19:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429039; bh=gFk9XqxV9n7m123vlEFydW55mude7sjmMtB/SipHeXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kbztkj0QndetcqJUPH4f5NUEFd0H4R9PZgHu28T3AKOQUkpxX+MrHpEbf6R8htLIA Ir8sBr/+1k1027YA7R6xf8RyNyEYfeQU4Sm5AGt/jiYDVj5FPB5K5AzceEga8EDFtN QCo7IO+pQ1/pL9o2EkboreUrTCcKhH99kHiwmEic= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , YueHaibing , Lorenzo Pieralisi , Kishon Vijay Abraham I , Sasha Levin Subject: [PATCH 4.14 264/293] PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB Date: Mon, 29 Jul 2019 21:22:35 +0200 Message-Id: <20190729190844.606539908@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 381ed79c8655a40268ee7391f716edd90c5c3a97 ] If CONFIG_GPIOLIB is not selected the compilation results in the following build errors: drivers/pci/controller/dwc/pci-dra7xx.c: In function dra7xx_pcie_probe: drivers/pci/controller/dwc/pci-dra7xx.c:777:10: error: implicit declaration of function devm_gpiod_get_optional; did you mean devm_regulator_get_optional? [-Werror=implicit-function-declaration] reset = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH); drivers/pci/controller/dwc/pci-dra7xx.c:778:45: error: ‘GPIOD_OUT_HIGH’ undeclared (first use in this function); did you mean ‘GPIOF_INIT_HIGH’? reset = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH); ^~~~~~~~~~~~~~ GPIOF_INIT_HIGH Fix them by including the appropriate header file. Reported-by: Hulk Robot Signed-off-by: YueHaibing [lorenzo.pieralisi@arm.com: commit log] Signed-off-by: Lorenzo Pieralisi Acked-by: Kishon Vijay Abraham I Signed-off-by: Sasha Levin --- drivers/pci/dwc/pci-dra7xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index 06eae132aff7..63052c5e5f82 100644 --- a/drivers/pci/dwc/pci-dra7xx.c +++ b/drivers/pci/dwc/pci-dra7xx.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "pcie-designware.h" -- 2.20.1