From 7350b8b6e313b6207d2cb37fa133824097fe9794 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sun, 11 Oct 2015 02:52:05 +0900 Subject: [PATCH] sys/dev/disk/dm: Remove unused prototype and wrong comments --- sys/dev/disk/dm/device-mapper.c | 2 +- sys/dev/disk/dm/dm.h | 1 - sys/dev/disk/dm/dm_dev.c | 2 +- sys/dev/disk/dm/dm_ioctl.c | 2 +- sys/dev/disk/dm/dm_target.c | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/dev/disk/dm/device-mapper.c b/sys/dev/disk/dm/device-mapper.c index dab77f32fa..e1cc089cf9 100644 --- a/sys/dev/disk/dm/device-mapper.c +++ b/sys/dev/disk/dm/device-mapper.c @@ -57,7 +57,7 @@ static d_psize_t dmsize; static d_strategy_t dmstrategy; static d_dump_t dmdump; -/* attach and detach routines */ +/* New module handle and destroy routines */ static int dm_modcmd(module_t mod, int cmd, void *unused); static int dmdestroy(void); diff --git a/sys/dev/disk/dm/dm.h b/sys/dev/disk/dm/dm.h index 59d8c13293..7779be261a 100644 --- a/sys/dev/disk/dm/dm.h +++ b/sys/dev/disk/dm/dm.h @@ -210,7 +210,6 @@ struct cmd_function { /* device-mapper */ void dmsetdiskinfo(struct disk *, dm_table_head_t *); -int dm_detach(dm_dev_t *); /* dm_ioctl.c */ int dm_dev_create_ioctl(prop_dictionary_t); diff --git a/sys/dev/disk/dm/dm_dev.c b/sys/dev/disk/dm/dm_dev.c index 334971b9f3..a0a28a4d86 100644 --- a/sys/dev/disk/dm/dm_dev.c +++ b/sys/dev/disk/dm/dm_dev.c @@ -314,7 +314,7 @@ dm_dev_destroy(dm_dev_t *dmv) } /* - * dm_detach is called to completely destroy & remove a dm disk device. + * dm_dev_remove is called to completely destroy & remove a dm disk device. */ int dm_dev_remove(dm_dev_t *dmv) diff --git a/sys/dev/disk/dm/dm_ioctl.c b/sys/dev/disk/dm/dm_ioctl.c index d81f1a7552..3d826dee31 100644 --- a/sys/dev/disk/dm/dm_ioctl.c +++ b/sys/dev/disk/dm/dm_ioctl.c @@ -349,7 +349,7 @@ dm_dev_remove_ioctl(prop_dictionary_t dm_dict) return EBUSY; /* - * This will call dm_detach routine which will actually remove + * This will call dm_dev_rem_dev routine which will actually remove * device. */ return dm_dev_remove(dmv); diff --git a/sys/dev/disk/dm/dm_target.c b/sys/dev/disk/dm/dm_target.c index 57051c8e14..409b98325a 100644 --- a/sys/dev/disk/dm/dm_target.c +++ b/sys/dev/disk/dm/dm_target.c @@ -249,7 +249,7 @@ dm_target_init(void) /* * Destroy all targets and remove them from queue. - * This routine is called from dm_detach, before module + * This routine is called from dmdestroy, before module * is unloaded. */ int -- 2.41.0