Re: building custom module on 2.6.28 fails

From: Jaswinder Singh Rajput
Date: Sun Jan 25 2009 - 05:41:57 EST


Hello Andrew, Sam,

On Sun, 2009-01-25 at 16:00 +0530, Jaswinder Singh Rajput wrote:
> On Sun, 2009-01-25 at 14:07 +0530, Satish Eerpini wrote:
> > -rw-r--r-- 1 root root 4848 2008-10-10 03:43
> > /usr/src/kernels/linux-2.6.28/include/linux/bootmem.h
> > -rw-r--r-- 1 root root 261 2008-10-10 03:43
> > /usr/src/kernels/linux-2.6.28/include/linux/bottom_half.h
> > -rw-r--r-- 1 root root 224 2009-01-25 14:09
> > /usr/src/kernels/linux-2.6.28/include/linux/bounds.h
> >
> >
> > On 1/25/09, Jaswinder Singh Rajput <jaswinder@xxxxxxxxxx> wrote:
> > > On Sun, 2009-01-25 at 10:27 +0530, Satish Eerpini wrote:
> > >> include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or
> > >> directory
>
> It seems you run "make clean" or "make distclean" in your kernel sources
>
> run "make prepare" in your kernel sources then you will not get this error.

Many people are facing similar problems like this.

In this case linux/bounds.h is generated by Kbuild and leads to error
for modules if we do "make clean" or "make distclean"

Can we take benefits from __GENERATING_BOUNDS_H

Do you have some better plans.

--
JSR

--
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/