Re: [mmotm 02/Oct] fix buid error of autodetect_raid()

From: Ingo Molnar
Date: Sat Oct 04 2008 - 08:10:32 EST



* KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> wrote:

> Patch against: mmotm 02 Oct
> Applied after: git-fastboot.patch
>
>
> fix following build error
>
> > CC init/do_mounts_md.o
> >init/do_mounts_md.c: In function 'autodetect_raid':
> >init/do_mounts_md.c:278: error: implicit declaration of function 'msleep'
> >make[1]: *** [init/do_mounts_md.o] Error 1
> >make: *** [init] Error 2
>
> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
> CC: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx>
> CC: Ingo Molnar <mingo@xxxxxxx>
> ---
> init/do_mounts_md.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Index: b/init/do_mounts_md.c
> ===================================================================
> --- a/init/do_mounts_md.c
> +++ b/init/do_mounts_md.c
> @@ -1,5 +1,6 @@
>
> #include <linux/raid/md.h>
> +#include <linux/delay.h>

hm, linux/raid/md.h already has:

#include <linux/delay.h>

what config triggers this build failure, and does your version of
include/linux/raid/md.h have a linux/delay.h #include?

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/