From patchwork Wed May 18 14:15:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9119721 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 736E9BF29F for ; Wed, 18 May 2016 14:16:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B1E1201ED for ; Wed, 18 May 2016 14:16:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A064320165 for ; Wed, 18 May 2016 14:16:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932310AbcEROQx (ORCPT ); Wed, 18 May 2016 10:16:53 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:64257 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932235AbcEROQw (ORCPT ); Wed, 18 May 2016 10:16:52 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue104) with ESMTPA (Nemesis) id 0LbJZC-1bRsi80N9W-00kx0J; Wed, 18 May 2016 16:16:42 +0200 From: Arnd Bergmann To: Bjorn Helgaas Cc: Arnd Bergmann , Marc Zyngier , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: host-generic: select IRQ_DOMAIN Date: Wed, 18 May 2016 16:15:53 +0200 Message-Id: <1463581000-983246-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:sbuXlmuCO+EqUN9t3eJJ+68/CmIDGU2kYF/be2OF5asnIEBqTQl ivjPX4x9xAmexxJWE8UqVBsuY9KovaunVLVV6V98grhgEbcOFugoAsQuSRLRJXP1NGtxgQU vpItCRZXZJtz5NrZAobNWM4gIx23SrC3p/8TOkQTPBbR/c19fE1wFVWMy7IzlwM+a+csGM7 +0Uej9U0J+7iI7f1dYfUA== X-UI-Out-Filterresults: notjunk:1; V01:K0:3uWMtqrw/u0=:U6YgmQY/bGIdFGu6DDM6T8 XVHWxfDaxGSYa0K8BL/hGfjhkPNT29//WSxKqsyj6qX5VZO2ZN3ewszFyUN7EzYDy3Cek73l4 sP8lHmHJ/6umMLMfjsheuoiBLH+tUy1EFT0UZ1msul6twQEdgH5jQHLmEJzjFOzBurHzFT6Mn GXQlsygqwtXPWDWNVFk/DiXjecC12QfbWG+xt6qJsUlaKHHa5MmUpglPVFoB3M+F1P16vw1i8 TPX1I8ZEJawHRkNxWrysdYgouRRmLZ+7/ey+b8cfmjISWSrsqrfBxYZ1WooP4muZbLfOiOtWh hSYDYYPfGudmplIJgLiCNfATInhGgN4yNA1mHYP89CbimRD7zinHYvmqCxNfWhny8Fds2DOvZ f3Tuikdy/+Nzqn7tY4KUqv7OiTJ85B+W7E94Y9VbcbK2/yP3B6+/RWwRS48MdcvReXvC8V2/A mALoCX76Rz3wM0lcnaGN09kSB+FfgB3dOxSk2VCm2rU4y8C9iQvbIs7TJSqgICagIlUaU57In PWkwgKBBykwuCwgk9/1RWPOu9gywzGtpaWUHTUMOMQKz/J61A7TUm/C9MLdtwKJDlu+TsTygv n8K6OuOriOibLHTJ1V9AP37TwHpvs8E2HjGCIYq74FE+LUlYFrMezrUpBCdjSRT43ExxBaVf2 rFn8xxC9cCjWXhoiqh0WFdovW07NXWtXhy4Qn92SbNOFck3Cu1L8aY8qLSSy3TijzhiSsG5Vg utfjnAGVOCkxDKgW Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 generic PCI host controller calls of_irq_parse_and_map_pci in its IRQ fixup, but that function is only available when CONFIG_IRQ_DOMAIN is set: drivers/pci/built-in.o: In function `pci_host_common_probe': drivers/pci/host/pci-host-common.c:181: undefined reference to `of_irq_parse_and_map_pci' There is no downside in enabling the domains here, so let's use a Kconfig select statement to ensure it's always available to this driver. Signed-off-by: Arnd Bergmann --- drivers/pci/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig index 66329b932e29..64734ba070a2 100644 --- a/drivers/pci/host/Kconfig +++ b/drivers/pci/host/Kconfig @@ -87,6 +87,7 @@ config PCI_HOST_GENERIC bool "Generic PCI host controller" depends on (ARM || ARM64) && OF select PCI_HOST_COMMON + select IRQ_DOMAIN help Say Y here if you want to support a simple generic PCI host controller, such as the one emulated by kvmtool.