diff options
author | Jon Smirl <jonsmirl@yahoo.com> | 2005-01-09 17:30:44 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@yahoo.com> | 2005-01-09 17:30:44 +0000 |
commit | 6e38fd357625ef002cf1f4570296dc66ba2631c6 (patch) | |
tree | c622e3a75daafdbbc572a8eab35d61dd13012e13 /linux-core | |
parent | e7ba83bd6f3a1ab9981948a64e9a09940d25e281 (diff) |
Adjust 4 level page check for <= 2.6.10
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_memory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_memory.h b/linux-core/drm_memory.h index d6856e14..f354885b 100644 --- a/linux-core/drm_memory.h +++ b/linux-core/drm_memory.h @@ -137,7 +137,7 @@ static inline void *agp_remap(unsigned long offset, unsigned long size, 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 <= KERNEL_VERSION(2,6,10) pmd_t *pmd = pmd_offset(pgd, (unsigned long)vaddr); #else pud_t *pud = pud_offset(pgd, (unsigned long) vaddr); |