Browse Source

dm: remove dm header from targets

Change #include "dm.h" to #include <linux/device-mapper.h> in all targets.
Targets should not need direct access to internal DM structures.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Mikulas Patocka 16 years ago
parent
commit
586e80e6ee

+ 1 - 1
drivers/md/dm-crypt.c

@@ -23,7 +23,7 @@
 #include <asm/page.h>
 #include <asm/page.h>
 #include <asm/unaligned.h>
 #include <asm/unaligned.h>
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
 
 
 #define DM_MSG_PREFIX "crypt"
 #define DM_MSG_PREFIX "crypt"
 #define MESG_STR(x) x, sizeof(x)
 #define MESG_STR(x) x, sizeof(x)

+ 2 - 1
drivers/md/dm-delay.c

@@ -13,7 +13,8 @@
 #include <linux/bio.h>
 #include <linux/bio.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
+
 #include "dm-bio-list.h"
 #include "dm-bio-list.h"
 
 
 #define DM_MSG_PREFIX "delay"
 #define DM_MSG_PREFIX "delay"

+ 0 - 1
drivers/md/dm-exception-store.c

@@ -7,7 +7,6 @@
  * This file is released under the GPL.
  * This file is released under the GPL.
  */
  */
 
 
-#include "dm.h"
 #include "dm-snap.h"
 #include "dm-snap.h"
 
 
 #include <linux/mm.h>
 #include <linux/mm.h>

+ 1 - 1
drivers/md/dm-io.c

@@ -5,7 +5,7 @@
  * This file is released under the GPL.
  * This file is released under the GPL.
  */
  */
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
 
 
 #include <linux/bio.h>
 #include <linux/bio.h>
 #include <linux/mempool.h>
 #include <linux/mempool.h>

+ 1 - 0
drivers/md/dm-kcopyd.c

@@ -22,6 +22,7 @@
 #include <linux/vmalloc.h>
 #include <linux/vmalloc.h>
 #include <linux/workqueue.h>
 #include <linux/workqueue.h>
 #include <linux/mutex.h>
 #include <linux/mutex.h>
+#include <linux/device-mapper.h>
 #include <linux/dm-kcopyd.h>
 #include <linux/dm-kcopyd.h>
 
 
 #include "dm.h"
 #include "dm.h"

+ 1 - 1
drivers/md/dm-linear.c

@@ -5,12 +5,12 @@
  */
  */
 
 
 #include "dm.h"
 #include "dm.h"
-
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/blkdev.h>
 #include <linux/blkdev.h>
 #include <linux/bio.h>
 #include <linux/bio.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
+#include <linux/device-mapper.h>
 
 
 #define DM_MSG_PREFIX "linear"
 #define DM_MSG_PREFIX "linear"
 
 

+ 1 - 1
drivers/md/dm-log.c

@@ -12,7 +12,7 @@
 #include <linux/dm-io.h>
 #include <linux/dm-io.h>
 #include <linux/dm-dirty-log.h>
 #include <linux/dm-dirty-log.h>
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
 
 
 #define DM_MSG_PREFIX "dirty region log"
 #define DM_MSG_PREFIX "dirty region log"
 
 

+ 2 - 1
drivers/md/dm-mpath.c

@@ -5,7 +5,8 @@
  * This file is released under the GPL.
  * This file is released under the GPL.
  */
  */
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
+
 #include "dm-path-selector.h"
 #include "dm-path-selector.h"
 #include "dm-bio-list.h"
 #include "dm-bio-list.h"
 #include "dm-bio-record.h"
 #include "dm-bio-record.h"

+ 2 - 1
drivers/md/dm-path-selector.c

@@ -9,7 +9,8 @@
  * Path selector registration.
  * Path selector registration.
  */
  */
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
+
 #include "dm-path-selector.h"
 #include "dm-path-selector.h"
 
 
 #include <linux/slab.h>
 #include <linux/slab.h>

+ 2 - 1
drivers/md/dm-raid1.c

@@ -4,7 +4,8 @@
  * This file is released under the GPL.
  * This file is released under the GPL.
  */
  */
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
+
 #include "dm-bio-list.h"
 #include "dm-bio-list.h"
 #include "dm-bio-record.h"
 #include "dm-bio-record.h"
 
 

+ 2 - 1
drivers/md/dm-round-robin.c

@@ -9,7 +9,8 @@
  * Round-robin path selector.
  * Round-robin path selector.
  */
  */
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
+
 #include "dm-path-selector.h"
 #include "dm-path-selector.h"
 
 
 #include <linux/slab.h>
 #include <linux/slab.h>

+ 1 - 1
drivers/md/dm-snap.h

@@ -9,7 +9,7 @@
 #ifndef DM_SNAPSHOT_H
 #ifndef DM_SNAPSHOT_H
 #define DM_SNAPSHOT_H
 #define DM_SNAPSHOT_H
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
 #include "dm-bio-list.h"
 #include "dm-bio-list.h"
 #include <linux/blkdev.h>
 #include <linux/blkdev.h>
 #include <linux/workqueue.h>
 #include <linux/workqueue.h>

+ 1 - 1
drivers/md/dm-stripe.c

@@ -4,7 +4,7 @@
  * This file is released under the GPL.
  * This file is released under the GPL.
  */
  */
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
 
 
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/init.h>

+ 1 - 1
drivers/md/dm-zero.c

@@ -4,7 +4,7 @@
  * This file is released under the GPL.
  * This file is released under the GPL.
  */
  */
 
 
-#include "dm.h"
+#include <linux/device-mapper.h>
 
 
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/init.h>