diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2014-02-13 22:43:32 +0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-03-28 00:56:23 +0400 |
commit | 473c36dfeecf4e49db928f3284b2fbe981f8c284 (patch) | |
tree | bc81810e952a7206ab290a2c751f2b3bcd7a3e63 /drivers/md | |
parent | 5a32083d03fb543f63489b2946c4948398579ba0 (diff) | |
download | linux-473c36dfeecf4e49db928f3284b2fbe981f8c284.tar.xz |
dm: make dm_table_alloc_md_mempools static
Make the function dm_table_alloc_md_mempools static because it is not
called from another file.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-table.c | 2 | ||||
-rw-r--r-- | drivers/md/dm.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 6a7f2b83a126..2ae35b2f80fd 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -945,7 +945,7 @@ bool dm_table_request_based(struct dm_table *t) return dm_table_get_type(t) == DM_TYPE_REQUEST_BASED; } -int dm_table_alloc_md_mempools(struct dm_table *t) +static int dm_table_alloc_md_mempools(struct dm_table *t) { unsigned type = dm_table_get_type(t); unsigned per_bio_data_size = 0; diff --git a/drivers/md/dm.h b/drivers/md/dm.h index c4569f02f50f..88cc58c5871a 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h @@ -73,7 +73,6 @@ unsigned dm_table_get_type(struct dm_table *t); struct target_type *dm_table_get_immutable_target_type(struct dm_table *t); bool dm_table_request_based(struct dm_table *t); bool dm_table_supports_discards(struct dm_table *t); -int dm_table_alloc_md_mempools(struct dm_table *t); void dm_table_free_md_mempools(struct dm_table *t); struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t); |