diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2008-10-21 12:44:59 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-10-21 12:44:59 -0400 |
commit | 586e80e6ee0d137c7d79fbae183bb37bc60ee97e (patch) | |
tree | 1f3cc124ed6ad93abd4c14f9c8900333c6cba6fb /drivers | |
parent | d63a5ce3c0d25c96bdadc78792e5b48b846e899d (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-crypt.c | 2 | ||||
-rw-r--r-- | drivers/md/dm-delay.c | 3 | ||||
-rw-r--r-- | drivers/md/dm-exception-store.c | 1 | ||||
-rw-r--r-- | drivers/md/dm-io.c | 2 | ||||
-rw-r--r-- | drivers/md/dm-kcopyd.c | 1 | ||||
-rw-r--r-- | drivers/md/dm-linear.c | 2 | ||||
-rw-r--r-- | drivers/md/dm-log.c | 2 | ||||
-rw-r--r-- | drivers/md/dm-mpath.c | 3 | ||||
-rw-r--r-- | drivers/md/dm-path-selector.c | 3 | ||||
-rw-r--r-- | drivers/md/dm-raid1.c | 3 | ||||
-rw-r--r-- | drivers/md/dm-round-robin.c | 3 | ||||
-rw-r--r-- | drivers/md/dm-snap.h | 2 | ||||
-rw-r--r-- | drivers/md/dm-stripe.c | 2 | ||||
-rw-r--r-- | drivers/md/dm-zero.c | 2 |
14 files changed, 18 insertions, 13 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 682ef9e6acd3..8939cba6e748 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <asm/page.h> | 23 | #include <asm/page.h> |
24 | #include <asm/unaligned.h> | 24 | #include <asm/unaligned.h> |
25 | 25 | ||
26 | #include "dm.h" | 26 | #include <linux/device-mapper.h> |
27 | 27 | ||
28 | #define DM_MSG_PREFIX "crypt" | 28 | #define DM_MSG_PREFIX "crypt" |
29 | #define MESG_STR(x) x, sizeof(x) | 29 | #define MESG_STR(x) x, sizeof(x) |
diff --git a/drivers/md/dm-delay.c b/drivers/md/dm-delay.c index bdd37f881c42..848b381f1173 100644 --- a/drivers/md/dm-delay.c +++ b/drivers/md/dm-delay.c | |||
@@ -13,7 +13,8 @@ | |||
13 | #include <linux/bio.h> | 13 | #include <linux/bio.h> |
14 | #include <linux/slab.h> | 14 | #include <linux/slab.h> |
15 | 15 | ||
16 | #include "dm.h" | 16 | #include <linux/device-mapper.h> |
17 | |||
17 | #include "dm-bio-list.h" | 18 | #include "dm-bio-list.h" |
18 | 19 | ||
19 | #define DM_MSG_PREFIX "delay" | 20 | #define DM_MSG_PREFIX "delay" |
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 6179bf70f98a..01590f3e0009 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * This file is released under the GPL. | 7 | * This file is released under the GPL. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "dm.h" | ||
11 | #include "dm-snap.h" | 10 | #include "dm-snap.h" |
12 | 11 | ||
13 | #include <linux/mm.h> | 12 | #include <linux/mm.h> |
diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c index 4789c42d9a3a..2fd6d4450637 100644 --- a/drivers/md/dm-io.c +++ b/drivers/md/dm-io.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * This file is released under the GPL. | 5 | * This file is released under the GPL. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "dm.h" | 8 | #include <linux/device-mapper.h> |
9 | 9 | ||
10 | #include <linux/bio.h> | 10 | #include <linux/bio.h> |
11 | #include <linux/mempool.h> | 11 | #include <linux/mempool.h> |
diff --git a/drivers/md/dm-kcopyd.c b/drivers/md/dm-kcopyd.c index 8f153530d6df..3073618269ea 100644 --- a/drivers/md/dm-kcopyd.c +++ b/drivers/md/dm-kcopyd.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/vmalloc.h> | 22 | #include <linux/vmalloc.h> |
23 | #include <linux/workqueue.h> | 23 | #include <linux/workqueue.h> |
24 | #include <linux/mutex.h> | 24 | #include <linux/mutex.h> |
25 | #include <linux/device-mapper.h> | ||
25 | #include <linux/dm-kcopyd.h> | 26 | #include <linux/dm-kcopyd.h> |
26 | 27 | ||
27 | #include "dm.h" | 28 | #include "dm.h" |
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 6449bcdf84ca..1b29e9136758 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c | |||
@@ -5,12 +5,12 @@ | |||
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include "dm.h" | 7 | #include "dm.h" |
8 | |||
9 | #include <linux/module.h> | 8 | #include <linux/module.h> |
10 | #include <linux/init.h> | 9 | #include <linux/init.h> |
11 | #include <linux/blkdev.h> | 10 | #include <linux/blkdev.h> |
12 | #include <linux/bio.h> | 11 | #include <linux/bio.h> |
13 | #include <linux/slab.h> | 12 | #include <linux/slab.h> |
13 | #include <linux/device-mapper.h> | ||
14 | 14 | ||
15 | #define DM_MSG_PREFIX "linear" | 15 | #define DM_MSG_PREFIX "linear" |
16 | 16 | ||
diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c index 5b48478c79f5..a8c0fc79ca78 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/dm-io.h> | 12 | #include <linux/dm-io.h> |
13 | #include <linux/dm-dirty-log.h> | 13 | #include <linux/dm-dirty-log.h> |
14 | 14 | ||
15 | #include "dm.h" | 15 | #include <linux/device-mapper.h> |
16 | 16 | ||
17 | #define DM_MSG_PREFIX "dirty region log" | 17 | #define DM_MSG_PREFIX "dirty region log" |
18 | 18 | ||
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 9bf3460c5540..abf6e8cfaedb 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -5,7 +5,8 @@ | |||
5 | * This file is released under the GPL. | 5 | * This file is released under the GPL. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "dm.h" | 8 | #include <linux/device-mapper.h> |
9 | |||
9 | #include "dm-path-selector.h" | 10 | #include "dm-path-selector.h" |
10 | #include "dm-bio-list.h" | 11 | #include "dm-bio-list.h" |
11 | #include "dm-bio-record.h" | 12 | #include "dm-bio-record.h" |
diff --git a/drivers/md/dm-path-selector.c b/drivers/md/dm-path-selector.c index ca1bb636a3e4..96ea226155b1 100644 --- a/drivers/md/dm-path-selector.c +++ b/drivers/md/dm-path-selector.c | |||
@@ -9,7 +9,8 @@ | |||
9 | * Path selector registration. | 9 | * Path selector registration. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "dm.h" | 12 | #include <linux/device-mapper.h> |
13 | |||
13 | #include "dm-path-selector.h" | 14 | #include "dm-path-selector.h" |
14 | 15 | ||
15 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index ecfd82169cb3..f358853af5cf 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
@@ -4,7 +4,8 @@ | |||
4 | * This file is released under the GPL. | 4 | * This file is released under the GPL. |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include "dm.h" | 7 | #include <linux/device-mapper.h> |
8 | |||
8 | #include "dm-bio-list.h" | 9 | #include "dm-bio-list.h" |
9 | #include "dm-bio-record.h" | 10 | #include "dm-bio-record.h" |
10 | 11 | ||
diff --git a/drivers/md/dm-round-robin.c b/drivers/md/dm-round-robin.c index 391dfa2ad434..cdfbf65b28cb 100644 --- a/drivers/md/dm-round-robin.c +++ b/drivers/md/dm-round-robin.c | |||
@@ -9,7 +9,8 @@ | |||
9 | * Round-robin path selector. | 9 | * Round-robin path selector. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "dm.h" | 12 | #include <linux/device-mapper.h> |
13 | |||
13 | #include "dm-path-selector.h" | 14 | #include "dm-path-selector.h" |
14 | 15 | ||
15 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h index 49c17bf12c21..f07315fe2362 100644 --- a/drivers/md/dm-snap.h +++ b/drivers/md/dm-snap.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #ifndef DM_SNAPSHOT_H | 9 | #ifndef DM_SNAPSHOT_H |
10 | #define DM_SNAPSHOT_H | 10 | #define DM_SNAPSHOT_H |
11 | 11 | ||
12 | #include "dm.h" | 12 | #include <linux/device-mapper.h> |
13 | #include "dm-bio-list.h" | 13 | #include "dm-bio-list.h" |
14 | #include <linux/blkdev.h> | 14 | #include <linux/blkdev.h> |
15 | #include <linux/workqueue.h> | 15 | #include <linux/workqueue.h> |
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 287e24584730..a2d068dbe9e2 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * This file is released under the GPL. | 4 | * This file is released under the GPL. |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include "dm.h" | 7 | #include <linux/device-mapper.h> |
8 | 8 | ||
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
diff --git a/drivers/md/dm-zero.c b/drivers/md/dm-zero.c index bdec206c404b..cdbf126ec106 100644 --- a/drivers/md/dm-zero.c +++ b/drivers/md/dm-zero.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * This file is released under the GPL. | 4 | * This file is released under the GPL. |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include "dm.h" | 7 | #include <linux/device-mapper.h> |
8 | 8 | ||
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |