From: Adrian Bunk <bunk@kernel.org>
To: dm-devel@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] make dm_set_device_limits() static
Date: Mon, 31 Mar 2008 02:28:36 +0300 [thread overview]
Message-ID: <20080330232836.GX28445@cs181133002.pp.htv.fi> (raw)
This patch makes the needlessly global dm_set_device_limits() static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
drivers/md/dm-table.c | 4 ++--
include/linux/device-mapper.h | 5 -----
2 files changed, 2 insertions(+), 7 deletions(-)
bb081f9ddde6ca766b8c1cd1077f203d0a082cdb diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index a999211..ce27283 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -491,7 +491,8 @@ static int __table_get_device(struct dm_table *t, struct dm_target *ti,
return 0;
}
-void dm_set_device_limits(struct dm_target *ti, struct block_device *bdev)
+static void dm_set_device_limits(struct dm_target *ti,
+ struct block_device *bdev)
{
struct request_queue *q = bdev_get_queue(bdev);
struct io_restrictions *rs = &ti->limits;
@@ -541,7 +542,6 @@ void dm_set_device_limits(struct dm_target *ti, struct block_device *bdev)
rs->no_cluster |= !test_bit(QUEUE_FLAG_CLUSTER, &q->queue_flags);
}
-EXPORT_SYMBOL_GPL(dm_set_device_limits);
int dm_get_device(struct dm_target *ti, const char *path, sector_t start,
sector_t len, int mode, struct dm_dev **result)
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index 8fc199b..4c4b3a6 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -75,11 +75,6 @@ typedef int (*dm_ioctl_fn) (struct dm_target *ti, struct inode *inode,
void dm_error(const char *message);
/*
- * Combine device limits.
- */
-void dm_set_device_limits(struct dm_target *ti, struct block_device *bdev);
-
-/*
* Constructors should call these functions to ensure destination devices
* are opened/closed correctly.
* FIXME: too many arguments.
next reply other threads:[~2008-03-30 23:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-30 23:28 Adrian Bunk [this message]
2008-04-16 13:35 ` [dm-devel] " Alasdair G Kergon
2008-04-14 18:41 Adrian Bunk
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=20080330232836.GX28445@cs181133002.pp.htv.fi \
--to=bunk@kernel.org \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®