Index: zttranscode.c =================================================================== --- zttranscode.c (revision 1245) +++ zttranscode.c (working copy) @@ -375,7 +375,11 @@ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) res = remap_pfn_range(vma, vma->vm_start, physical >> PAGE_SHIFT, sizeof(struct zt_transcode_header), PAGE_SHARED); #else + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) + res = remap_page_range(vma->vm_start, physical, sizeof(struct zt_transcode_header), PAGE_SHARED); + #else res = remap_page_range(vma, vma->vm_start, physical, sizeof(struct zt_transcode_header), PAGE_SHARED); + #endif #endif if (res) { if (debug)