aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-10-12 20:55:12 -0400
committerNeilBrown <neilb@suse.de>2008-10-12 20:55:12 -0400
commitfb4d8c76e56a887b9eee99fbc55fe82b18625d30 (patch)
tree0ca96887e40db671957b79d493830b9527b04949 /drivers/md/md.c
parentab5bd5cbc8d4b868378d062eed3d4240930fbb86 (diff)
md: Remove unnecessary #includes, #defines, and function declarations.
A lot of cruft has gathered over the years. Time to remove it. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index fc33082d5ffd..cd97de5982e8 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -32,31 +32,20 @@
32 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 32 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
33*/ 33*/
34 34
35#include <linux/module.h>
36#include <linux/kernel.h>
37#include <linux/kthread.h> 35#include <linux/kthread.h>
38#include <linux/linkage.h>
39#include <linux/raid/md.h> 36#include <linux/raid/md.h>
40#include <linux/raid/bitmap.h> 37#include <linux/raid/bitmap.h>
41#include <linux/sysctl.h> 38#include <linux/sysctl.h>
42#include <linux/buffer_head.h> /* for invalidate_bdev */ 39#include <linux/buffer_head.h> /* for invalidate_bdev */
43#include <linux/poll.h> 40#include <linux/poll.h>
44#include <linux/mutex.h>
45#include <linux/ctype.h> 41#include <linux/ctype.h>
46#include <linux/freezer.h> 42#include <linux/hdreg.h>
47 43#include <linux/proc_fs.h>
48#include <linux/init.h> 44#include <linux/random.h>
49 45#include <linux/reboot.h>
50#include <linux/file.h> 46#include <linux/file.h>
51 47
52#ifdef CONFIG_KMOD
53#include <linux/kmod.h>
54#endif
55
56#include <asm/unaligned.h>
57
58#define MAJOR_NR MD_MAJOR 48#define MAJOR_NR MD_MAJOR
59#define MD_DRIVER
60 49
61/* 63 partitions with the alternate major number (mdp) */ 50/* 63 partitions with the alternate major number (mdp) */
62#define MdpMinorShift 6 51#define MdpMinorShift 6
@@ -3559,12 +3548,10 @@ static int do_md_run(mddev_t * mddev)
3559 } 3548 }
3560 } 3549 }
3561 3550
3562#ifdef CONFIG_KMOD
3563 if (mddev->level != LEVEL_NONE) 3551 if (mddev->level != LEVEL_NONE)
3564 request_module("md-level-%d", mddev->level); 3552 request_module("md-level-%d", mddev->level);
3565 else if (mddev->clevel[0]) 3553 else if (mddev->clevel[0])
3566 request_module("md-%s", mddev->clevel); 3554 request_module("md-%s", mddev->clevel);
3567#endif
3568 3555
3569 /* 3556 /*
3570 * Drop all container device buffers, from now on 3557 * Drop all container device buffers, from now on