From patchwork Tue Nov 3 14:08:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7542641 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 47E4FBEEA4 for ; Tue, 3 Nov 2015 14:09:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C2A88206D5 for ; Tue, 3 Nov 2015 14:09:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD419206AF for ; Tue, 3 Nov 2015 14:09:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751011AbbKCOJH (ORCPT ); Tue, 3 Nov 2015 09:09:07 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:60294 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbbKCOJG (ORCPT ); Tue, 3 Nov 2015 09:09:06 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0MeOiZ-1a6ZkS0nq3-00Q9Pn; Tue, 03 Nov 2015 15:08:35 +0100 From: Arnd Bergmann To: Bjorn Helgaas , linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ley Foon Tan , Marc Zyngier Subject: [PATCH] PCI: altera: add OF_PCI dependency Date: Tue, 03 Nov 2015 15:08:33 +0100 Message-ID: <38421064.oVjju5M930@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1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Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The newly added altera PCI driver fails to build when CONFIG_OF is disabled: drivers/pci/host/pcie-altera.c: In function 'altera_pcie_parse_request_of_pci_ranges': drivers/pci/host/pcie-altera.c:420:8: error: implicit declaration of function 'of_pci_get_host_bridge_resources' [-Werror=implicit-function-declaration] This adds a dependency on OF_PCI for clarity, this is the symbol that guards the implementation of of_pci_get_host_bridge_resources. Signed-off-by: Arnd Bergmann Fixes: 6bb4dd154ae8 ("PCI: altera: Add Altera PCIe host controller driver") --- Found on ARM randconfig builds yesterday -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig index 9e24075d83f7..f131ba947dc6 100644 --- a/drivers/pci/host/Kconfig +++ b/drivers/pci/host/Kconfig @@ -150,6 +150,7 @@ config PCIE_IPROC_BCMA config PCIE_ALTERA bool "Altera PCIe controller" depends on ARM || NIOS2 + depends on OF_PCI select PCI_DOMAINS help Say Y here if you want to enable PCIe controller support on Altera