mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
	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	[thread overview]
Message-ID: <20160620154604.2280100-1-arnd@arndb.de> (raw)

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 <arnd@arndb.de>
---
 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
-- 
2.9.0

             reply	other threads:[~2016-06-20 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-20 15:45 Arnd Bergmann [this message]
2016-06-20 19:05 ` Bjorn Helgaas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160620154604.2280100-1-arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=bhelgaas@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome