[PATCH 1/2 v4] Driver for Freescale 8610 and 5121 DIU

Scott Wood scottwood at freescale.com
Sat Mar 29 05:09:05 EST 2008


Timur Tabi wrote:
> Scott Wood wrote:
> 
>> ...but not anywhere else.  All user pointers should have a __user 
>> annotation.
> 
> Even in a typecast?

Yes.  Otherwise, as far as sparse sees, you're passing a kernel pointer 
to something expecting a user pointer.

-Scott



More information about the Linuxppc-dev mailing list