Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4081973ybi; Mon, 29 Jul 2019 18:52:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFSQ7Arymv9Z57OS6AaSU7uM+PrOe4qsb46cj7l848b1vDs4SZwkhh1q21aC/HwV2lnKrj X-Received: by 2002:a62:7d96:: with SMTP id y144mr39546671pfc.156.1564451527058; Mon, 29 Jul 2019 18:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564451527; cv=none; d=google.com; s=arc-20160816; b=nhjJuNxOaPFqAWEby4AH4epVNwZB/6W2TuB8O+QtnFAmX5e4yULWxzqzGzh0UEjYaj o9ArrdNAlmzdH5epsA6hRYdmmOIQVFTXR6cooN7rZfFK0iAKtMYKqqQKgzW00hITZEKE dSGL0it5Kfxx8CxvH6gpUXP2viAaHVTgrospMe6020kULJnwzu21pj9kWDU0Jxy/grcL RS5F7PtS+0SJ6QQhwHHjzgbI08HPc5SF3lvbiedyRzXwlR+waeU/kqfdQJqgokqPqQRn Am0Kitruc51Iczh21A0a1alPumda9jsdmahG/ZBLUhpHp/NSowGYdkjW0Ikbe154/R6z C3+g== 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=ax3cJAc85Vn24g7ph6lFjmsHrpn8Wz/AV1k42diua+A=; b=mmxVYluKGTgPy9UFneAc5rAxJaaniLQ/FdqpnnlpsuL8LikvUasZ5FPtKyhd64L3EU tzop7wIuUDb47oL/pvMZm/oevjWfeoNPxFSxDH62avNngI0Y0oFoHYbnJ0Ymqa3vT9ro /A0QY/x0tzvZOE4Ko5hrIpRlFhEY8Ze5gL2kaHwfJPvgI4rJhvge2451LVCFwNJCg3EM pf2vbLTVbUZMj5KMkcW/0kQCcwbejcTCZtmF4sJ9dzwDdBWIULlT+wPudkFMv5QhD9kE 2crovHNlCAr+t4lpVEd+KpMlns4uk+rHFjVmufLf7PuvpfQzzgvei23AHrQEiwIseYQY EIjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vzdv4Lwl; 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 b93si27010148plb.11.2019.07.29.18.51.51; Mon, 29 Jul 2019 18:52:07 -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=Vzdv4Lwl; 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 S1727539AbfG2Tnn (ORCPT + 99 others); Mon, 29 Jul 2019 15:43:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:60074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389680AbfG2Tnj (ORCPT ); Mon, 29 Jul 2019 15:43:39 -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 DA8ED205F4; Mon, 29 Jul 2019 19:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429418; bh=51ONNl4E+d89K/QAbboXSlc5uF1O3xdiIJKuLk6jNjo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vzdv4LwlwpkSh2/0eI9mJSHdMXig5Tzs72yDKaw5hfQs/f0tqnUa1rjTdlBWZwI6i kQPKZasUQD5rCx++Fybd/UHmfY3eNwVUxAX6AZEkbSyGh6fzs9P/cKEjHMzhG2Dtag rRUkQ16LxeFAn7w5u15YM73h6CG3TJgE/0WGxcAY= 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.19 074/113] PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB Date: Mon, 29 Jul 2019 21:22:41 +0200 Message-Id: <20190729190713.193526342@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190655.455345569@linuxfoundation.org> References: <20190729190655.455345569@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 a32d6dde7a57..412524aa1fde 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