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

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



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

> Hi Ingo,
>
> Thank you for very quick responce.
>
> > > 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,
>
> config attached.
>
>
> > and does your version of
> > include/linux/raid/md.h have a linux/delay.h #include?
>
> No.
>
> git-md.patch of current mmotm has following hunk.
> ok, CCing NeilBrown and Andre Noll.
>
> > diff -puN include/linux/raid/md.h~git-md include/linux/raid/md.h
> > --- a/include/linux/raid/md.h~git-md
> > +++ a/include/linux/raid/md.h
> > @@ -19,27 +19,7 @@
> > #define _MD_H
> >
> > #include <linux/blkdev.h>
> > -#include <linux/major.h>
> > -#include <linux/ioctl.h>
> > -#include <linux/types.h>
> > -#include <linux/bitops.h>
> > -#include <linux/module.h>
> > -#include <linux/hdreg.h>
> > -#include <linux/proc_fs.h>
> > #include <linux/seq_file.h>
> > -#include <linux/smp_lock.h>
> > -#include <linux/delay.h>
> > -#include <net/checksum.h>
> > -#include <linux/random.h>
> > -#include <linux/kernel_stat.h>
> > -#include <asm/io.h>
> > -#include <linux/completion.h>
> > -#include <linux/mempool.h>
> > -#include <linux/list.h>
> > -#include <linux/reboot.h>
> > -#include <linux/vmalloc.h>
> > -#include <linux/blkpg.h>
> > -#include <linux/bio.h>

ah, that indeed makes sense.

so the build error can not hit the fastboot tree, only if combined with
the latest raid tree. I've applied your fix to tip/fastboot, thanks!

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/