Commit 586e80e6ee0d137c7d79fbae183bb37bc60ee97e

Authored by Mikulas Patocka
Committed by Alasdair G Kergon
1 parent d63a5ce3c0

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

drivers/md/dm-crypt.c
... ... @@ -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)
drivers/md/dm-delay.c
... ... @@ -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"
drivers/md/dm-exception-store.c
... ... @@ -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>
drivers/md/dm-kcopyd.c
... ... @@ -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"
drivers/md/dm-linear.c
... ... @@ -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  
drivers/md/dm-mpath.c
... ... @@ -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"
drivers/md/dm-path-selector.c
... ... @@ -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>
drivers/md/dm-raid1.c
... ... @@ -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  
drivers/md/dm-round-robin.c
... ... @@ -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>
drivers/md/dm-snap.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>
drivers/md/dm-stripe.c
... ... @@ -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>
drivers/md/dm-zero.c
... ... @@ -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>