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: 102132 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1575936qgy; Mon, 20 Jun 2016 08:48:31 -0700 (PDT) X-Received: by 10.98.76.211 with SMTP id e80mr22223495pfj.28.1466437706690; Mon, 20 Jun 2016 08:48:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s78si33814770pfd.23.2016.06.20.08.48.25; Mon, 20 Jun 2016 08:48:26 -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; 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 S1755048AbcFTPp0 (ORCPT + 30 others); Mon, 20 Jun 2016 11:45:26 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.9.0 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