From: Mikulas Patocka Change #include "dm.h" to #include in all targets. Target drivers are not supposed to include internal DM structures. Signed-off-by: Mikulas Patocka --- drivers/md/dm-crypt.c | 2 +- drivers/md/dm-delay.c | 3 ++- drivers/md/dm-exception-store.c | 1 - drivers/md/dm-io.c | 2 +- drivers/md/dm-kcopyd.c | 1 + drivers/md/dm-linear.c | 2 +- drivers/md/dm-log.c | 2 +- drivers/md/dm-mpath.c | 3 ++- drivers/md/dm-path-selector.c | 3 ++- drivers/md/dm-raid1.c | 3 ++- drivers/md/dm-round-robin.c | 3 ++- drivers/md/dm-snap.h | 2 +- drivers/md/dm-stripe.c | 2 +- drivers/md/dm-zero.c | 2 +- 14 files changed, 18 insertions(+), 13 deletions(-) Index: linux-2.6.27-devel/drivers/md/dm-crypt.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-crypt.c 2008-10-13 21:36:31.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-crypt.c 2008-10-13 21:38:34.000000000 +0200 @@ -23,7 +23,7 @@ #include #include -#include "dm.h" +#include #define DM_MSG_PREFIX "crypt" #define MESG_STR(x) x, sizeof(x) Index: linux-2.6.27-devel/drivers/md/dm-delay.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-delay.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-delay.c 2008-10-13 21:38:34.000000000 +0200 @@ -13,7 +13,8 @@ #include #include -#include "dm.h" +#include + #include "dm-bio-list.h" #define DM_MSG_PREFIX "delay" Index: linux-2.6.27-devel/drivers/md/dm-exception-store.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-exception-store.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-exception-store.c 2008-10-13 21:38:34.000000000 +0200 @@ -7,7 +7,6 @@ * This file is released under the GPL. */ -#include "dm.h" #include "dm-snap.h" #include Index: linux-2.6.27-devel/drivers/md/dm-io.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-io.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-io.c 2008-10-13 21:38:34.000000000 +0200 @@ -5,7 +5,7 @@ * This file is released under the GPL. */ -#include "dm.h" +#include #include #include Index: linux-2.6.27-devel/drivers/md/dm-kcopyd.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-kcopyd.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-kcopyd.c 2008-10-13 21:38:34.000000000 +0200 @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "dm.h" Index: linux-2.6.27-devel/drivers/md/dm-linear.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-linear.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-linear.c 2008-10-13 21:38:34.000000000 +0200 @@ -5,12 +5,12 @@ */ #include "dm.h" - #include #include #include #include #include +#include #define DM_MSG_PREFIX "linear" Index: linux-2.6.27-devel/drivers/md/dm-log.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-log.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-log.c 2008-10-13 21:38:34.000000000 +0200 @@ -12,7 +12,7 @@ #include #include -#include "dm.h" +#include #define DM_MSG_PREFIX "dirty region log" Index: linux-2.6.27-devel/drivers/md/dm-mpath.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-mpath.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-mpath.c 2008-10-13 21:38:34.000000000 +0200 @@ -5,7 +5,8 @@ * This file is released under the GPL. */ -#include "dm.h" +#include + #include "dm-path-selector.h" #include "dm-bio-list.h" #include "dm-bio-record.h" Index: linux-2.6.27-devel/drivers/md/dm-path-selector.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-path-selector.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-path-selector.c 2008-10-13 21:38:34.000000000 +0200 @@ -9,7 +9,8 @@ * Path selector registration. */ -#include "dm.h" +#include + #include "dm-path-selector.h" #include Index: linux-2.6.27-devel/drivers/md/dm-raid1.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-raid1.c 2008-10-13 21:36:35.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-raid1.c 2008-10-13 21:38:34.000000000 +0200 @@ -4,7 +4,8 @@ * This file is released under the GPL. */ -#include "dm.h" +#include + #include "dm-bio-list.h" #include "dm-bio-record.h" Index: linux-2.6.27-devel/drivers/md/dm-round-robin.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-round-robin.c 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-round-robin.c 2008-10-13 21:38:34.000000000 +0200 @@ -9,7 +9,8 @@ * Round-robin path selector. */ -#include "dm.h" +#include + #include "dm-path-selector.h" #include Index: linux-2.6.27-devel/drivers/md/dm-snap.h =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-snap.h 2008-10-13 21:36:32.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-snap.h 2008-10-13 21:38:34.000000000 +0200 @@ -9,7 +9,7 @@ #ifndef DM_SNAPSHOT_H #define DM_SNAPSHOT_H -#include "dm.h" +#include #include "dm-bio-list.h" #include #include Index: linux-2.6.27-devel/drivers/md/dm-stripe.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-stripe.c 2008-10-13 21:36:33.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-stripe.c 2008-10-13 21:38:34.000000000 +0200 @@ -4,7 +4,7 @@ * This file is released under the GPL. */ -#include "dm.h" +#include #include #include Index: linux-2.6.27-devel/drivers/md/dm-zero.c =================================================================== --- linux-2.6.27-devel.orig/drivers/md/dm-zero.c 2008-10-13 21:36:33.000000000 +0200 +++ linux-2.6.27-devel/drivers/md/dm-zero.c 2008-10-13 21:38:34.000000000 +0200 @@ -4,7 +4,7 @@ * This file is released under the GPL. */ -#include "dm.h" +#include #include #include