Skip to content

Commit

Permalink
dm: remove dm header from targets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mikulas Patocka authored and kergon committed Oct 21, 2008
1 parent d63a5ce commit 586e80e
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <asm/page.h>
#include <asm/unaligned.h>

#include "dm.h"
#include <linux/device-mapper.h>

#define DM_MSG_PREFIX "crypt"
#define MESG_STR(x) x, sizeof(x)
Expand Down
3 changes: 2 additions & 1 deletion drivers/md/dm-delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#include <linux/bio.h>
#include <linux/slab.h>

#include "dm.h"
#include <linux/device-mapper.h>

#include "dm-bio-list.h"

#define DM_MSG_PREFIX "delay"
Expand Down
1 change: 0 additions & 1 deletion drivers/md/dm-exception-store.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* This file is released under the GPL.
*/

#include "dm.h"
#include "dm-snap.h"

#include <linux/mm.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/md/dm-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* This file is released under the GPL.
*/

#include "dm.h"
#include <linux/device-mapper.h>

#include <linux/bio.h>
#include <linux/mempool.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/md/dm-kcopyd.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/vmalloc.h>
#include <linux/workqueue.h>
#include <linux/mutex.h>
#include <linux/device-mapper.h>
#include <linux/dm-kcopyd.h>

#include "dm.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/md/dm-linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*/

#include "dm.h"

#include <linux/module.h>
#include <linux/init.h>
#include <linux/blkdev.h>
#include <linux/bio.h>
#include <linux/slab.h>
#include <linux/device-mapper.h>

#define DM_MSG_PREFIX "linear"

Expand Down
2 changes: 1 addition & 1 deletion drivers/md/dm-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <linux/dm-io.h>
#include <linux/dm-dirty-log.h>

#include "dm.h"
#include <linux/device-mapper.h>

#define DM_MSG_PREFIX "dirty region log"

Expand Down
3 changes: 2 additions & 1 deletion drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* This file is released under the GPL.
*/

#include "dm.h"
#include <linux/device-mapper.h>

#include "dm-path-selector.h"
#include "dm-bio-list.h"
#include "dm-bio-record.h"
Expand Down
3 changes: 2 additions & 1 deletion drivers/md/dm-path-selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
* Path selector registration.
*/

#include "dm.h"
#include <linux/device-mapper.h>

#include "dm-path-selector.h"

#include <linux/slab.h>
Expand Down
3 changes: 2 additions & 1 deletion drivers/md/dm-raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* This file is released under the GPL.
*/

#include "dm.h"
#include <linux/device-mapper.h>

#include "dm-bio-list.h"
#include "dm-bio-record.h"

Expand Down
3 changes: 2 additions & 1 deletion drivers/md/dm-round-robin.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
* Round-robin path selector.
*/

#include "dm.h"
#include <linux/device-mapper.h>

#include "dm-path-selector.h"

#include <linux/slab.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/md/dm-snap.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef DM_SNAPSHOT_H
#define DM_SNAPSHOT_H

#include "dm.h"
#include <linux/device-mapper.h>
#include "dm-bio-list.h"
#include <linux/blkdev.h>
#include <linux/workqueue.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/md/dm-stripe.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is released under the GPL.
*/

#include "dm.h"
#include <linux/device-mapper.h>

#include <linux/module.h>
#include <linux/init.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/md/dm-zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is released under the GPL.
*/

#include "dm.h"
#include <linux/device-mapper.h>

#include <linux/module.h>
#include <linux/init.h>
Expand Down

0 comments on commit 586e80e

Please sign in to comment.