Re: get_user_ret

2000-11-30 Thread Arnaldo Carvalho de Melo

Em Thu, Nov 30, 2000 at 05:58:19PM +0100, Øyvind Jægtnes escreveu:
> 
> This get_user_ret thing seems to have changed again... what is the
> correct syntax now?

if (get_user(blah, bleh))
return -EFAULT;

*_user*_ret is gone for good.

- Arnaldo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: get_user_ret

2000-11-30 Thread Arnaldo Carvalho de Melo

Em Thu, Nov 30, 2000 at 05:58:19PM +0100, Øyvind Jægtnes escreveu:
 
 This get_user_ret thing seems to have changed again... what is the
 correct syntax now?

if (get_user(blah, bleh))
return -EFAULT;

*_user*_ret is gone for good.

- Arnaldo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: get_user_ret

2000-09-15 Thread Mohammad A. Haque

There's several of similar ones that have been renamed...

copy_to_user_ret
put_user_ret
get_user_ret


replace with 

if(get_user(..))
return -EFAULT;


Along these lines, I've made a patch to lm_sensors so that they work
under test8. Patch is available at
http://www.haque.net/software/patches/lm_sensors-2.5.2+2.4.0-test8-pre2.diff.gz

Øyvind Jægtnes wrote:
> 
> I have a couple of sound modules which fails under 2.4.0-test8 because
> they can't resolve get_user_ret().
> 
> Anyone know what to use instead?
> 
> Øyvind Jægtnes
> 

-- 

=
Mohammad A. Haque  http://www.haque.net/ 
   [EMAIL PROTECTED]

  "Alcohol and calculus don't mix. Project Lead
   Don't drink and derive." --Unknown  http://wm.themes.org/
   [EMAIL PROTECTED]
=
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: get_user_ret

2000-09-15 Thread David S. Miller

   From: [EMAIL PROTECTED] (Øyvind Jægtnes)
   Date:15 Sep 2000 11:42:38 +0200

   I have a couple of sound modules which fails under 2.4.0-test8 because
   they can't resolve get_user_ret().

   Anyone know what to use instead?

Replace it with:

if (get_user(...))
return -EFAULT;

Later,
David S. Miller
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: get_user_ret

2000-09-15 Thread Mohammad A. Haque

There's several of similar ones that have been renamed...

copy_to_user_ret
put_user_ret
get_user_ret


replace with 

if(get_user(..))
return -EFAULT;


Along these lines, I've made a patch to lm_sensors so that they work
under test8. Patch is available at
http://www.haque.net/software/patches/lm_sensors-2.5.2+2.4.0-test8-pre2.diff.gz

Øyvind Jægtnes wrote:
 
 I have a couple of sound modules which fails under 2.4.0-test8 because
 they can't resolve get_user_ret().
 
 Anyone know what to use instead?
 
 Øyvind Jægtnes
 

-- 

=
Mohammad A. Haque  http://www.haque.net/ 
   [EMAIL PROTECTED]

  "Alcohol and calculus don't mix. Project Lead
   Don't drink and derive." --Unknown  http://wm.themes.org/
   [EMAIL PROTECTED]
=
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: get_user_ret

2000-09-15 Thread David S. Miller

   From: [EMAIL PROTECTED] (Øyvind Jægtnes)
   Date:15 Sep 2000 11:42:38 +0200

   I have a couple of sound modules which fails under 2.4.0-test8 because
   they can't resolve get_user_ret().

   Anyone know what to use instead?

Replace it with:

if (get_user(...))
return -EFAULT;

Later,
David S. Miller
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/