Adjust 4 level page check for <= 2.6.10
parent
e7ba83bd6f
commit
6e38fd3576
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue