提交 fdee8ae4 编写于 作者: J Jeff Garzik 提交者: Linus Torvalds

[PATCH] MD: conditionalize some code

The autorun code is only used if this module is built into the static
kernel image.  Adjust #ifdefs accordingly.
Signed-off-by: NJeff Garzik <jeff@garzik.org>
Acked-by: NNeilBrown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 b875e531
......@@ -3371,6 +3371,7 @@ static int do_md_stop(mddev_t * mddev, int mode)
return err;
}
#ifndef MODULE
static void autorun_array(mddev_t *mddev)
{
mdk_rdev_t *rdev;
......@@ -3485,6 +3486,7 @@ static void autorun_devices(int part)
}
printk(KERN_INFO "md: ... autorun DONE.\n");
}
#endif /* !MODULE */
static int get_version(void __user * arg)
{
......@@ -5593,7 +5595,7 @@ static void autostart_arrays(int part)
autorun_devices(part);
}
#endif
#endif /* !MODULE */
static __exit void md_exit(void)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册