Jon Smirl wrote: > CVSROOT: /cvs/dri > Module name: drm > Repository: drm/linux-core/ > Changes by: [EMAIL PROTECTED] 05/01/06 09:09:22 > > Log message: > Adjust drm-memory for 4 level page tables in 2.6.10 > ifdef'd to use 3 levels in kernels older than 2.6.10 > > Modified files: > drm/linux-core/: > drm_memory.h > > Revision Changes Path > 1.31 +7 -2 drm/linux-core/drm_memory.h
The build of linux-core is failing as 4 level page tables weren't in 2.6.10, but are going to be in 2.6.11. Simple fix attached. -- Alan. "One must never be purposelessnessnesslessness."
--- drm/linux-core/drm_memory.h 2005-01-08 15:39:14.000000000 +0000
+++ drm/linux-core/drm_memory.h 2005-01-08 16:20:33.678901008 +0000
@@ -137,7 +137,7 @@
static inline unsigned long drm_follow_page(void *vaddr)
{
pgd_t *pgd = pgd_offset_k((unsigned long) vaddr);
-#if LINUX_VERSION_CODE < 0x02060a /* KERNEL_VERSION(2,6,10) */
+#if LINUX_VERSION_CODE < 0x02060b /* KERNEL_VERSION(2,6,11) */
pmd_t *pmd = pmd_offset(pgd, (unsigned long)vaddr);
#else
pud_t *pud = pud_offset(pgd, (unsigned long) vaddr);
signature.asc
Description: This is a digitally signed message part
