From patchwork Mon Jun 20 15:45:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9187857 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F1DBF6075E for ; Mon, 20 Jun 2016 15:50:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1C7C26861 for ; Mon, 20 Jun 2016 15:50:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D613C27AC2; Mon, 20 Jun 2016 15:50:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7ED5826861 for ; Mon, 20 Jun 2016 15:50:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754088AbcFTPpY (ORCPT ); Mon, 20 Jun 2016 11:45:24 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:49894 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752656AbcFTPoJ (ORCPT ); Mon, 20 Jun 2016 11:44:09 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0MEmRm-1b90pt0zHe-00FyLA; Mon, 20 Jun 2016 17:44:03 +0200 From: Arnd Bergmann To: Bjorn Helgaas Cc: Arnd Bergmann , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pci: export devm_request_pci_bus_resources to modules Date: Mon, 20 Jun 2016 17:45:41 +0200 Message-Id: <20160620154604.2280100-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:My/oOzSBzM8iOtASuhJloKQo75QPWnZKSTrW0XQTg5dy+RQSvbi MGzBPgDP64pmuI4y2V1LMfbFht33kzyCA7gYyz6AbBHtJJ8Jmdina3kM8v1DBv7H7Vmhbnu IZQPtGwmAWS623WX4Q+wNi+SCv8xw1HO+3O4INio1woIMRacjzH10CQ2/t82IqQYjvt3xLD GtTMbVMo2TxiCUy0aPxHg== X-UI-Out-Filterresults: notjunk:1; V01:K0:SUc/3u2aZVo=:he9383nXzrG9+6MMOpVOEi 8+81wXgRTqJUpE0Oqt6IfEpn+X1spBPyvx0Xty1tUAZldU5atTZjxY/Fl/N4Df7YNQtWOn1rr jaxkmdXLCKs/7Kq6ueAz0ZWN2lWo/UPjXeaND5VrUtHmC9pzZG4cblH/SE28WtkyxuQ/zxxkW G8L250HC+ir7Vy70XVvv1LW87r2/rzv5xA5ZerQauKqmDRJHyntQaFyvrilDcmJy40S3cGIf6 cembxUrHjRUtAayviaIebk91Pf5F9GK4w5H7KHaNll9ds4iucpyMqidifTL2RvrbDZxvfRrM4 PkNMGTMFg5z9zmjvyk7jqI41iNrc62FFHt+HKSKqXDEPE+qoKOG1rTAXu3mgNMkVFW+nti09a YXOQZqZEQ/hGtSIiMSmmdP51mkuWTWWw1J58AWj0gXzj4jnQQ+fjafyS5MRsppjfLcWj0sq6d /gmBi33iYapMq2QboTFmHdPIFM23lXUKaDYrFX3yDqXHLUke5kscoBsuMNzGqVzaDdVRk4y+6 UtQ2XTzj2JCh/+Sy+1EgkQkEO5iDrn0qJhi7RClr0kLg7BWakCvxhkVwKAwn25v5NBxBlyVfm 0Jg/NLzxVAdZjSHuWI1b0Z0p+DLfIyDRfdruueCO/wonJYLiAMnvEa9e70t7zR/A8YN4LZazP MVIe232Nwd03zT8fyk91C5nlAWn9sTLQMnERwwUWRK89kgdTSATJ1wY+c54PGcg4FF3o= Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Host drivers can be loadable modules, so we might run into this build error with the new interface: ERROR: devm_request_pci_bus_resources [drivers/pci/host/pcie-iproc.ko] undefined! This adds an EXPORT_SYMBOL_GPL() line. Signed-off-by: Arnd Bergmann --- drivers/pci/bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index 4c42a1013e3b..32efe8f5d5e9 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c @@ -132,6 +132,7 @@ int devm_request_pci_bus_resources(struct device *dev, return 0; } +EXPORT_SYMBOL_GPL(devm_request_pci_bus_resources); static struct pci_bus_region pci_32_bit = {0, 0xffffffffULL}; #ifdef CONFIG_PCI_BUS_ADDR_T_64BIT