Re: [PATCH] cleanup on selection.c

From: Matthew Wilcox (
Date: Fri Aug 25 2000 - 10:55:52 EST

On Fri, Aug 25, 2000 at 11:06:41AM -0300, Arnaldo Carvalho de Melo wrote:
> nope, look at copy_from_user_ret in include/asm/uaccess.h
> #define copy_from_user_ret(to,from,n,retval) ({ if (copy_from_user(to,from,n)) return retval; })

you're misunderstanding this gcc-ism. if the define were:

#define copy_from_user_ret(to,from,n,retval) if (copy_from_user(to,from,n)) \
        return retval;

then your original code was correct.

Revolutions do not require corporate support.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:16 EST