lkml.org 
[lkml]   [2002]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: patch to NVIDIA_kernel & kernel 2.5.5
Hello 

Oh right this is an mistake (darn!!!) But it leads only ;-) to problems when
compiled for kernel < 2.5.0

On 20-Feb-02 Nicholas Petreley wrote:
> I think you may not have meant to do this part of the patch in nv.c:
>
> +/*
> if (remap_page_range(start, page, PAGE_SIZE, PAGE_SHARED))
> +*/
> + if (remap_page_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
> return -EAGAIN;
>
>
> How about this instead:
>
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
> if (remap_page_range(start, page, PAGE_SIZE, PAGE_SHARED))
> return -EAGAIN;
> +#else
> + if (remap_page_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
> + return -EAGAIN;
> +#endif
>
>
>
>
> --
> ***********************************************************
> Nicholas Petreley http://www.VarLinux.org
> nicholas@petreley.com http://www.computerworld.com
> http://www.petreley.org http://www.linuxworld.com Eph 6:12
> ***********************************************************
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

-----------------------------------------------
E-Mail: Martin Huenniger <pirx@minet.uni-jena.de>
Date: 20-Feb-02
Time: 21:40:17
-----------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.057 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site