Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757987AbYC3X3Y (ORCPT ); Sun, 30 Mar 2008 19:29:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756857AbYC3X2v (ORCPT ); Sun, 30 Mar 2008 19:28:51 -0400 Received: from smtp6.pp.htv.fi ([213.243.153.40]:59145 "EHLO smtp6.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756838AbYC3X2u (ORCPT ); Sun, 30 Mar 2008 19:28:50 -0400 Date: Mon, 31 Mar 2008 02:28:36 +0300 From: Adrian Bunk To: dm-devel@redhat.com Cc: linux-kernel@vger.kernel.org Subject: [2.6 patch] make dm_set_device_limits() static Message-ID: <20080330232836.GX28445@cs181133002.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1967 Lines: 54 This patch makes the needlessly global dm_set_device_limits() static. Signed-off-by: Adrian Bunk --- 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/