Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3800503ybi; Mon, 29 Jul 2019 12:53:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaSr+pGbZ+sMCgFW3PyKvYC4rx6v0R6xWlka0n99qVx0wqd8ABzzqajlNRntUMVinTKwW6 X-Received: by 2002:a62:5252:: with SMTP id g79mr37630999pfb.18.1564430007194; Mon, 29 Jul 2019 12:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564430007; cv=none; d=google.com; s=arc-20160816; b=J9dHnaIw8Yg3Ae3Y8+NuLvWkI0nDEYJIJLVv3feuNiktHXoPX6LSAp/ajT69LH93jP T/YUQh5iQ5lW1d190p44UI5V5RyhdPEQYGUwMYjAP7v3m0OTk+qJ8c+8QhHdmb4M+sWB 6PLKQu+NVGB2yUFQPZOT/MqtZPIKIOU6JnG8mBC2X+s/1P0HHw372VO2jJEshjeQ1OO5 6H+bxgnmNvX+BqSPtJvyFMxpRNSksVw2v8DRnBVmtuzCUhTkF2Fos0RCqMIv/HKvE6f+ wxbQi718k/g3KZNelEbdZ+4FDh3SEKkQVOzcNFX+ZJeU9lXGzHHRkCypNt7SsxvMzip7 iClg== 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=T1tMq6KD/aRHQFDIdnlPxu0IenCqAwofRo2+MRQ2u+Q=; b=C25D+/+xOUzz6FNI1zyuOFEnzLBqgkm0H4xkuYQb74wm3SYHEDcgWv9EiIBqx0lRBR eL0nD4nwdO3+viiJ5FLJg5x3UsXuD4rJ/DDNS2aBEbE553qYSukBL/d6Wmdjd/FcN/5y T46PHVv7rww1GwSEoq5zjd4JcMmStyiPMsbzl7xtOmo2UIEK/2G9wk6elUqt/ycvf5ve DcqTijRYWOFNMt7bk34OCGUuWznFxtHAhNVy3TfwwkLMm/B0c8ytfPcqwcx+uiySjnhX JGlkQoxXJ9Hc2sdaFSoienhifMl6gES49iGwiUoRqwna+XCRRtr+YjXtKP5OuoffYM+X gZbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="W/HJtaq9"; 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 u70si25415474pgd.1.2019.07.29.12.53.12; Mon, 29 Jul 2019 12:53:27 -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="W/HJtaq9"; 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 S2390788AbfG2Tvd (ORCPT + 99 others); Mon, 29 Jul 2019 15:51:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:42948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390775AbfG2Tvb (ORCPT ); Mon, 29 Jul 2019 15:51:31 -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 E0676204EC; Mon, 29 Jul 2019 19:51:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429890; bh=xqhnROkAuFWOa9hoLUMsZoXHogbMEhZx5u0bQNKIWwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W/HJtaq95Xw4+1sFxFvqbklIKcrHjz1jhHtzbG8J3R0HOOq37WnUnfhr9vO2OmCdr 3bxObsphKf3NLo269tmphM9E1s6usDtB75cIz/JpE3DETEvlxxW/FU6gRxt71seQjy /uAVP0Pai8C+TB5GKcK/dfSbX+lU+lef3nxlSp6M= 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 5.2 129/215] PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB Date: Mon, 29 Jul 2019 21:22:05 +0200 Message-Id: <20190729190801.744441299@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@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/controller/dwc/pci-dra7xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pci-dra7xx.c index 419451efd58c..4234ddb4722f 100644 --- a/drivers/pci/controller/dwc/pci-dra7xx.c +++ b/drivers/pci/controller/dwc/pci-dra7xx.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "../../pci.h" #include "pcie-designware.h" -- 2.20.1