Commit fdee8ae4 authored by Jeff Garzik's avatar Jeff Garzik Committed by 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: default avatarJeff Garzik <jeff@garzik.org>
Acked-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b875e531
...@@ -3371,6 +3371,7 @@ out: ...@@ -3371,6 +3371,7 @@ out:
return err; return err;
} }
#ifndef MODULE
static void autorun_array(mddev_t *mddev) static void autorun_array(mddev_t *mddev)
{ {
mdk_rdev_t *rdev; mdk_rdev_t *rdev;
...@@ -3485,6 +3486,7 @@ static void autorun_devices(int part) ...@@ -3485,6 +3486,7 @@ static void autorun_devices(int part)
} }
printk(KERN_INFO "md: ... autorun DONE.\n"); printk(KERN_INFO "md: ... autorun DONE.\n");
} }
#endif /* !MODULE */
static int get_version(void __user * arg) static int get_version(void __user * arg)
{ {
...@@ -5593,7 +5595,7 @@ static void autostart_arrays(int part) ...@@ -5593,7 +5595,7 @@ static void autostart_arrays(int part)
autorun_devices(part); autorun_devices(part);
} }
#endif #endif /* !MODULE */
static __exit void md_exit(void) static __exit void md_exit(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment