[Devel] [PATCH rh7 2/2] ms/dm: remove dummy definition of 'struct dm_table'

Andrey Ryabinin aryabinin at virtuozzo.com
Thu Sep 22 09:44:34 PDT 2016


There is no need for it.

https://jira.sw.ru/browse/PSBM-50727

Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 drivers/md/dm-ioctl.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 720ceeb..0fe4233 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -36,14 +36,6 @@ struct hash_cell {
 	struct dm_table *new_map;
 };
 
-/*
- * A dummy definition to make RCU happy.
- * struct dm_table should never be dereferenced in this file.
- */
-struct dm_table {
-	int undefined__;
-};
-
 struct vers_iter {
     size_t param_size;
     struct dm_target_versions *vers, *old_vers;
-- 
2.7.3



More information about the Devel mailing list