From: Ville Syrjälä
to_user_ptr() simply casts a pointer passed as u64 from user space
to void __user * correctly. Using this lets us get rid of all the
tiresome casts.
The idea came from Chris Wilson .
Signed-off-by: Ville Syrjälä
---
drivers/gpu/drm/i915/i915_drv.h| 5 +
dr
On Fri, Feb 22, 2013 at 04:12:51PM +0200, ville.syrj...@linux.intel.com wrote:
> From: Ville Syrjälä
>
> to_user_ptr() simply casts a pointer passed as u64 from user space
> to void __user * correctly. Using this lets us get rid of all the
> tiresome casts.
>
> The idea came from Chris Wilson .
On Fri, Feb 22, 2013 at 12:16:58PM -0800, Andi Kleen wrote:
> ville.syrj...@linux.intel.com writes:
>
> > From: Ville Syrjälä
> >
> > to_user_ptr() simply casts a pointer passed as u64 from user space
> > to void __user * correctly. Using this lets us get rid of all the
> > tiresome casts.
>
> T
On Fri, Feb 22, 2013 at 02:29:44PM +, Chris Wilson wrote:
> On Fri, Feb 22, 2013 at 04:12:51PM +0200, ville.syrj...@linux.intel.com wrote:
> > From: Ville Syrjälä
> >
> > to_user_ptr() simply casts a pointer passed as u64 from user space
> > to void __user * correctly. Using this lets us get