Commit
586e80e6ee0d137c7d79fbae183bb37bc60ee97e
Exists in
master
and in
20 other branches
dlt-processor-sdk-linux-03.00.00.04, newt-ti-linux-3.12.y, processor-sdk-linux-01.00.00, processor-sdk-linux-02.00.01, smarc-ti-linux-3.12.10, smarc-ti-linux-3.12.y, smarc-ti-linux-3.14.y, smarc-ti-linux-3.15.y, smarc-ti-lsk-linux-4.1.y, smarct3x-processor-sdk-04.01.00.06, smarct3x-processor-sdk-linux-02.00.01, smarct3x-processor-sdk-linux-03.00.00.04, smarct4x-800-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-04.01.00.06, smarct4x-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-linux-03.00.00.04, ti-linux-3.12.y, ti-linux-3.14.y, ti-linux-3.15.y, ti-lsk-linux-4.1.y
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>
Showing
14 changed files
with
18 additions
and
13 deletions
Side-by-side Diff
... |
... |
@@ -23,7 +23,7 @@ |
23
|
23 |
#include <asm/page.h> |
24
|
24 |
#include <asm/unaligned.h> |
25
|
25 |
|
26
|
|
-#include "dm.h" |
|
26 |
+#include <linux/device-mapper.h> |
27
|
27 |
|
28
|
28 |
#define DM_MSG_PREFIX "crypt" |
29
|
29 |
#define MESG_STR(x) x, sizeof(x) |
... |
... |
@@ -13,7 +13,8 @@ |
13
|
13 |
#include <linux/bio.h> |
14
|
14 |
#include <linux/slab.h> |
15
|
15 |
|
16
|
|
-#include "dm.h" |
|
16 |
+#include <linux/device-mapper.h> |
|
17 |
+ |
17
|
18 |
#include "dm-bio-list.h" |
18
|
19 |
|
19
|
20 |
#define DM_MSG_PREFIX "delay" |
... |
... |
@@ -7,7 +7,6 @@ |
7
|
7 |
* This file is released under the GPL. |
8
|
8 |
*/ |
9
|
9 |
|
10
|
|
-#include "dm.h" |
11
|
10 |
#include "dm-snap.h" |
12
|
11 |
|
13
|
12 |
#include <linux/mm.h> |
... |
... |
@@ -5,7 +5,7 @@ |
5
|
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
|
10 |
#include <linux/bio.h> |
11
|
11 |
#include <linux/mempool.h> |
... |
... |
@@ -22,6 +22,7 @@ |
22
|
22 |
#include <linux/vmalloc.h> |
23
|
23 |
#include <linux/workqueue.h> |
24
|
24 |
#include <linux/mutex.h> |
|
25 |
+#include <linux/device-mapper.h> |
25
|
26 |
#include <linux/dm-kcopyd.h> |
26
|
27 |
|
27
|
28 |
#include "dm.h" |
... |
... |
@@ -5,12 +5,12 @@ |
5
|
5 |
*/ |
6
|
6 |
|
7
|
7 |
#include "dm.h" |
8
|
|
- |
9
|
8 |
#include <linux/module.h> |
10
|
9 |
#include <linux/init.h> |
11
|
10 |
#include <linux/blkdev.h> |
12
|
11 |
#include <linux/bio.h> |
13
|
12 |
#include <linux/slab.h> |
|
13 |
+#include <linux/device-mapper.h> |
14
|
14 |
|
15
|
15 |
#define DM_MSG_PREFIX "linear" |
16
|
16 |
|
... |
... |
@@ -12,7 +12,7 @@ |
12
|
12 |
#include <linux/dm-io.h> |
13
|
13 |
#include <linux/dm-dirty-log.h> |
14
|
14 |
|
15
|
|
-#include "dm.h" |
|
15 |
+#include <linux/device-mapper.h> |
16
|
16 |
|
17
|
17 |
#define DM_MSG_PREFIX "dirty region log" |
18
|
18 |
|
... |
... |
@@ -5,7 +5,8 @@ |
5
|
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 "dm-path-selector.h" |
10
|
11 |
#include "dm-bio-list.h" |
11
|
12 |
#include "dm-bio-record.h" |
... |
... |
@@ -9,7 +9,8 @@ |
9
|
9 |
* Path selector registration. |
10
|
10 |
*/ |
11
|
11 |
|
12
|
|
-#include "dm.h" |
|
12 |
+#include <linux/device-mapper.h> |
|
13 |
+ |
13
|
14 |
#include "dm-path-selector.h" |
14
|
15 |
|
15
|
16 |
#include <linux/slab.h> |
... |
... |
@@ -4,7 +4,8 @@ |
4
|
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 "dm-bio-list.h" |
9
|
10 |
#include "dm-bio-record.h" |
10
|
11 |
|
... |
... |
@@ -9,7 +9,8 @@ |
9
|
9 |
* Round-robin path selector. |
10
|
10 |
*/ |
11
|
11 |
|
12
|
|
-#include "dm.h" |
|
12 |
+#include <linux/device-mapper.h> |
|
13 |
+ |
13
|
14 |
#include "dm-path-selector.h" |
14
|
15 |
|
15
|
16 |
#include <linux/slab.h> |
... |
... |
@@ -9,7 +9,7 @@ |
9
|
9 |
#ifndef DM_SNAPSHOT_H |
10
|
10 |
#define DM_SNAPSHOT_H |
11
|
11 |
|
12
|
|
-#include "dm.h" |
|
12 |
+#include <linux/device-mapper.h> |
13
|
13 |
#include "dm-bio-list.h" |
14
|
14 |
#include <linux/blkdev.h> |
15
|
15 |
#include <linux/workqueue.h> |
... |
... |
@@ -4,7 +4,7 @@ |
4
|
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
|
9 |
#include <linux/module.h> |
10
|
10 |
#include <linux/init.h> |
... |
... |
@@ -4,7 +4,7 @@ |
4
|
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
|
9 |
#include <linux/module.h> |
10
|
10 |
#include <linux/init.h> |