On 2008.03.06 02:49:10 +0000, Alec Robertson wrote:
> The latest git drm doesn't compile on 2.6.25-rc3 as flush_agp_mappings has
> been
> removed: http://lwn.net/Articles/267135/
>
> The error message:
> /usr/local/src/drm/linux-core/drm_ttm.c:134: error: implicit declaration of
> function 'flush_agp_mappings'
> make[3]: *** [/usr/local/src/drm/linux-core/drm_ttm.o] Error 1
> make[2]: *** [_module_/usr/local/src/drm/linux-core] Error 2
> make[1]: *** [modules] Error 2
> make: *** [radeon.o] Error 2
>
> After commenting out line 132 and compiling, the kernel modules load fine and
> X
> seems to work OK.
Here's the compat patch.
---
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index 136a729..4d0dc83 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -212,6 +212,10 @@ extern int drm_map_page_into_agp(struct page *page);
#define unmap_page_from_agp drm_unmap_page_from_agp
#endif
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
+#define flush_agp_mappings() do {} while (0)
+#endif
+
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15))
extern struct page *get_nopage_retry(void);
extern void free_nopage_retry(void);
---
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel