All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicholas Petreley <nicholas@petreley.com>
To: linux-kernel@vger.kernel.org
Subject: Re: patch to NVIDIA_kernel & kernel 2.5.5
Date: Wed, 20 Feb 2002 12:01:35 -0800	[thread overview]
Message-ID: <20020220200135.GA706@petreley.com> (raw)

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
***********************************************************

             reply	other threads:[~2002-02-20 20:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-20 20:01 Nicholas Petreley [this message]
2002-02-20 20:40 ` patch to NVIDIA_kernel & kernel 2.5.5 Martin Huenniger
2002-02-20 22:50 ` J.A. Magallon
  -- strict thread matches above, loose matches on Subject: below --
2002-02-20 18:17 Martin Huenniger
2002-02-28  8:49 ` Martin Huenniger
2002-02-28 16:53   ` Thomas Dodd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020220200135.GA706@petreley.com \
    --to=nicholas@petreley.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.