Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mikulas Patocka and committed by
Alasdair G Kergon
586e80e6 d63a5ce3

+18 -13
+1 -1
drivers/md/dm-crypt.c
··· 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)
+2 -1
drivers/md/dm-delay.c
··· 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"
-1
drivers/md/dm-exception-store.c
··· 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>
+1 -1
drivers/md/dm-io.c
··· 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>
+1
drivers/md/dm-kcopyd.c
··· 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"
+1 -1
drivers/md/dm-linear.c
··· 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
+1 -1
drivers/md/dm-log.c
··· 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
+2 -1
drivers/md/dm-mpath.c
··· 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"
+2 -1
drivers/md/dm-path-selector.c
··· 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>
+2 -1
drivers/md/dm-raid1.c
··· 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
+2 -1
drivers/md/dm-round-robin.c
··· 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>
+1 -1
drivers/md/dm-snap.h
··· 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>
+1 -1
drivers/md/dm-stripe.c
··· 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>
+1 -1
drivers/md/dm-zero.c
··· 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>