[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2.6.35-rc5 build on MIPS misses asm/agp.h



On Sun, 2010-07-18 at 10:43 +0200, Geert Stappers wrote:
> Hello Debian kernel people,
> 
> 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
> | make[9]: *** [drivers/gpu/drm/ttm/ttm_page_alloc.o] Error 1
> | make[8]: *** [drivers/gpu/drm/ttm] Error 2
> | make[7]: *** [drivers/gpu/drm] Error 2
> | make[6]: *** [drivers/gpu] Error 2
> | make[5]: *** [drivers] Error 2
> | make[4]: *** [sub-make] Error 2
> | make[3]: *** [all] Error 2
> | make[3]: Leaving directory
> | `/usr/src/Linux/debian-svn/debian/build/build_mipsel_none_4kc-malta'
> | make[2]: *** [debian/stamps/build_mipsel_none_4kc-malta_plain] Error 2
> | make[2]: Leaving directory `/usr/src/Linux/debian-svn'
> | make[1]: *** [build_mipsel_none_4kc-malta_real] Error 2
> | make[1]: Leaving directory `/usr/src/Linux/debian-svn'
> | make: *** [debian/stamps/build-base] Error 2
[...]

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

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: