Skip to content

Commit 473c36d

Browse files
Mikulas Patockasnitm
authored andcommitted
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>
1 parent 5a32083 commit 473c36d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/md/dm-table.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ bool dm_table_request_based(struct dm_table *t)
945945
return dm_table_get_type(t) == DM_TYPE_REQUEST_BASED;
946946
}
947947

948-
int dm_table_alloc_md_mempools(struct dm_table *t)
948+
static int dm_table_alloc_md_mempools(struct dm_table *t)
949949
{
950950
unsigned type = dm_table_get_type(t);
951951
unsigned per_bio_data_size = 0;

‎drivers/md/dm.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ unsigned dm_table_get_type(struct dm_table *t);
7373
struct target_type *dm_table_get_immutable_target_type(struct dm_table *t);
7474
bool dm_table_request_based(struct dm_table *t);
7575
bool dm_table_supports_discards(struct dm_table *t);
76-
int dm_table_alloc_md_mempools(struct dm_table *t);
7776
void dm_table_free_md_mempools(struct dm_table *t);
7877
struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t);
7978

0 commit comments

Comments
 (0)