Re: [PATCH -next] x86: apic_flat_64.c needs module.h

From: Ingo Molnar
Date: Mon May 23 2011 - 15:26:41 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

>
> * Randy Dunlap <randy.dunlap@xxxxxxxxxx> wrote:
>
> > >>> arch/x86/kernel/apic/apic_flat_64.c | 1 +
> > >>> 1 file changed, 1 insertion(+)
> > >>>
> > >>> --- linux-next-20110523.orig/arch/x86/kernel/apic/apic_flat_64.c
> > >>> +++ linux-next-20110523/arch/x86/kernel/apic/apic_flat_64.c
> > >>> @@ -16,6 +16,7 @@
> > >>> #include <linux/ctype.h>
> > >>> #include <linux/init.h>
> > >>> #include <linux/hardirq.h>
> > >>> +#include <linux/module.h>
> > >>> #include <asm/smp.h>
> > >>> #include <asm/apic.h>
> > >>> #include <asm/ipi.h>
> > >>
> > >> Thanks Randy! For some reason I didn't hit this problem while
> > >> were compiling the kernel and testing it (I usually do not use
> > >> modules though).
> > >>
> > >> I've CC'ed Ingo and Suresh.
> > >>
> > >
> > > Randy, while adding module.h here is correct I fail to see why I didn't
> > > hit this problem before, could you please post your config?
> >
> > Certainly, it's attached. It's a randconfig file.
> > I saw this build error on roughly 5 out of 15 randconfig builds.
> >
> > CONFIG_SMP is disabled...
>
> Your config builds just fine here, using latest -tip:

oh, stupid me, it's a warning, not a build failure.

Applied your fix, thanks Randy!

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/