From: Tao Guo <guotao-U4AKAne5IzAR5TUyvShJeg@public.gmane.org>
To: linux-nfs@vger.kernel.org
Cc: Fred Isaman <iisaman@umich.edu>, Benny Halevy <bhalevy@panasas.com>
Subject: [PATCH 1/2] pnfsblock: expose block_class interface
Date: Fri, 14 May 2010 16:46:42 +0800 [thread overview]
Message-ID: <20100514084619.GA10293@vmware> (raw)
Export symbol block_class instead of shost_class for much more
generic block device iterations.
Signed-off-by: Huang Haoi <huanghao-U4AKAne5IzAR5TUyvShJeg@public.gmane.org>
---
block/genhd.c | 1 +
drivers/scsi/hosts.c | 1 -
2 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index d13ba76..6faa1c6 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1009,6 +1009,7 @@ static void disk_release(struct device *dev)
struct class block_class = {
.name = "block",
};
+EXPORT_SYMBOL(block_class);
static char *block_devnode(struct device *dev, mode_t *mode)
{
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 1b22b02..f1c2547 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -53,7 +53,6 @@ struct class shost_class = {
.name = "scsi_host",
.dev_release = scsi_host_cls_release,
};
-EXPORT_SYMBOL(shost_class);
/**
* scsi_host_set_state - Take the given host through the host state model.
--
1.6.3.3
reply other threads:[~2010-05-14 9:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20100514084619.GA10293@vmware \
--to=guotao-u4akane5izar5tuyvshjeg@public.gmane.org \
--cc=bhalevy@panasas.com \
--cc=iisaman@umich.edu \
--cc=linux-nfs@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;
as well as URLs for NNTP newsgroup(s).