From c087ec3de86a8a51cd47a0b221c71690ee84fb3b Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 18 Feb 2004 04:52:07 -0800 Subject: [PATCH] [PATCH] dm: Export dm_vcalloc() From: Joe Thornber Export dm_vcalloc() --- drivers/md/dm-table.c | 3 ++- drivers/md/dm.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index f0651c57981dc..df7efc790aab9 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -149,7 +149,7 @@ static int setup_btree_index(unsigned int l, struct dm_table *t) return 0; } -static void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size) +void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size) { unsigned long size; void *addr; @@ -858,6 +858,7 @@ void dm_table_resume_targets(struct dm_table *t) } +EXPORT_SYMBOL(dm_vcalloc); EXPORT_SYMBOL(dm_get_device); EXPORT_SYMBOL(dm_put_device); EXPORT_SYMBOL(dm_table_event); diff --git a/drivers/md/dm.h b/drivers/md/dm.h index 7619155211674..874fdf8da0eeb 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h @@ -167,4 +167,6 @@ void dm_linear_exit(void); int dm_stripe_init(void); void dm_stripe_exit(void); +void *dm_vcalloc(unsigned long nmemb, unsigned long elem_size); + #endif -- 2.53.0