Adjust 4 level page check for <= 2.6.10

main
Jon Smirl 2005-01-09 17:30:44 +00:00
parent e7ba83bd6f
commit 6e38fd3576
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ static inline void *agp_remap(unsigned long offset, unsigned long size,
static inline unsigned long drm_follow_page(void *vaddr) static inline unsigned long drm_follow_page(void *vaddr)
{ {
pgd_t *pgd = pgd_offset_k((unsigned long) 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); pmd_t *pmd = pmd_offset(pgd, (unsigned long)vaddr);
#else #else
pud_t *pud = pud_offset(pgd, (unsigned long) vaddr); pud_t *pud = pud_offset(pgd, (unsigned long) vaddr);