From: Ryan Desfosses <ryan@desfo.org>
To: bhelgaas@google.com
Cc: trivial@kernel.org, linux-kernel@vger.kernel.org,
linux-pci@vger.kernel.org, Ryan Desfosses <ryan@desfo.org>
Subject: [PATCH 7/8] pci-driver: moved EXPORT_SYMBOL so that it immediately followed its function/variable
Date: Fri, 18 Apr 2014 20:13:52 -0400 [thread overview]
Message-ID: <1397866433-21119-8-git-send-email-ryan@desfo.org> (raw)
In-Reply-To: <1397866433-21119-1-git-send-email-ryan@desfo.org>
change made to resolve following checkpatch message:
WARNING: EXPORT_SYMBOL(foo); should immediately follow
its function/aariable
branch: Linux 3.15-rc1
Signed-off-by: Ryan Desfosses <ryan@desfo.org>
---
drivers/pci/pci-driver.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 821efe2..2c921a2 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -77,6 +77,7 @@ int pci_add_dynid(struct pci_driver *drv,
return retval;
}
+EXPORT_SYMBOL_GPL(pci_add_dynid);
static void pci_free_dynids(struct pci_driver *drv)
{
@@ -242,6 +243,7 @@ static const struct pci_device_id *pci_match_device(struct pci_driver *drv,
return pci_match_id(drv->id_table, dev);
}
+EXPORT_SYMBOL(pci_match_id);
struct drv_dev_and_id {
struct pci_driver *drv;
@@ -1216,6 +1218,7 @@ int __pci_register_driver(struct pci_driver *drv, struct module *owner,
/* register with core */
return driver_register(&drv->driver);
}
+EXPORT_SYMBOL(__pci_register_driver);
/**
* pci_unregister_driver - unregister a pci driver
@@ -1233,6 +1236,7 @@ pci_unregister_driver(struct pci_driver *drv)
driver_unregister(&drv->driver);
pci_free_dynids(drv);
}
+EXPORT_SYMBOL(pci_unregister_driver);
static struct pci_driver pci_compat_driver = {
.name = "compat"
@@ -1258,6 +1262,7 @@ pci_dev_driver(const struct pci_dev *dev)
}
return NULL;
}
+EXPORT_SYMBOL(pci_dev_driver);
/**
* pci_bus_match - Tell if a PCI device structure has a matching PCI device id structure
@@ -1303,6 +1308,7 @@ struct pci_dev *pci_dev_get(struct pci_dev *dev)
get_device(&dev->dev);
return dev;
}
+EXPORT_SYMBOL(pci_dev_get);
/**
* pci_dev_put - release a use of the pci device structure
@@ -1316,6 +1322,7 @@ void pci_dev_put(struct pci_dev *dev)
if (dev)
put_device(&dev->dev);
}
+EXPORT_SYMBOL(pci_dev_put);
static int pci_uevent(struct device *dev, struct kobj_uevent_env *env)
{
@@ -1362,6 +1369,7 @@ struct bus_type pci_bus_type = {
.drv_groups = pci_drv_groups,
.pm = PCI_PM_OPS_PTR,
};
+EXPORT_SYMBOL(pci_bus_type);
static int __init pci_driver_init(void)
{
@@ -1370,11 +1378,3 @@ static int __init pci_driver_init(void)
postcore_initcall(pci_driver_init);
-EXPORT_SYMBOL_GPL(pci_add_dynid);
-EXPORT_SYMBOL(pci_match_id);
-EXPORT_SYMBOL(__pci_register_driver);
-EXPORT_SYMBOL(pci_unregister_driver);
-EXPORT_SYMBOL(pci_dev_driver);
-EXPORT_SYMBOL(pci_bus_type);
-EXPORT_SYMBOL(pci_dev_get);
-EXPORT_SYMBOL(pci_dev_put);
--
1.9.1
next prev parent reply other threads:[~2014-04-19 0:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-19 0:13 [PATCH 0/8] patch series Ryan Desfosses
2014-04-19 0:13 ` [PATCH 1/8] ats: removed parentheses after return Ryan Desfosses
2014-04-19 0:13 ` [PATCH 2/8] bus: moved EXPORT_SYMBOL so that it immediately followed its function/variable Ryan Desfosses
2014-04-19 0:13 ` [PATCH 3/8] htirq: " Ryan Desfosses
2014-04-19 0:13 ` [PATCH 4/8] htirq: removed space after open parenthesis Ryan Desfosses
2014-04-19 0:13 ` [PATCH 5/8] msi: merged quoted strings Ryan Desfosses
2014-04-19 0:13 ` [PATCH 6/8] pci-driver: added or removed a space to resolve checkpatch messages Ryan Desfosses
2014-04-19 0:13 ` Ryan Desfosses [this message]
2014-04-19 0:13 ` [PATCH 8/8] pci-stub: added spaces around equal sign Ryan Desfosses
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=1397866433-21119-8-git-send-email-ryan@desfo.org \
--to=ryan@desfo.org \
--cc=bhelgaas@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=trivial@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;
as well as URLs for NNTP newsgroup(s).