Re: 2.6.35-rc5 build on MIPS misses asm/agp.h
Op 20100718 om 13:10 schreef Ben Hutchings:
> On Sun, 2010-07-18 at 10:43 +0200, Geert Stappers wrote:
> >
> > This E-mail is to report a kernel build failure that I encountered.
> >
> > On a MIPSEL system I do get this output
> >
> > | CC [M] drivers/gpu/drm/ttm/ttm_lock.o
> > | CC [M] drivers/gpu/drm/ttm/ttm_execbuf_util.o
> > | CC [M] drivers/gpu/drm/ttm/ttm_page_alloc.o
> > | /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/gpu/drm/ttm/ttm_page_alloc.c:43:21: error: asm/agp.h: No such file or directory
>
> Try adding this patch:
>
> --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
> +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
> @@ -40,7 +40,9 @@
> #include <linux/slab.h>
>
> #include <asm/atomic.h>
> +#ifdef TTM_HAS_AGP
> #include <asm/agp.h>
> +#endif
>
> #include "ttm/ttm_bo_driver.h"
> #include "ttm/ttm_page_alloc.h"
> --- END ---
Yes! That got me further \o/
Output:
| CALL /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/scripts/checksyscalls.sh
| CHK include/generated/compile.h
| CC [M] drivers/gpu/drm/ttm/ttm_page_alloc.o
| LD [M] drivers/gpu/drm/ttm/ttm.o
| LD drivers/gpu/drm/via/built-in.o
| CC [M] drivers/gpu/drm/via/via_irq.o
[and more]
> Ben.
Thank you!
Cheers
Geert Stappers
Reply to: