diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-02-22 16:12:51 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-03 19:49:11 +0100 |
commit | 2bb4629add2e648f1822872cce72f0fe163ce605 (patch) | |
tree | 019ee35e089baacdefa33211798825fa3ea5953c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 83f377abed03e46eb3b6ce14a91291e7cdf86647 (diff) |
drm/i915: Add to_user_ptr()
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 <chris@chris-wilson.co.uk>.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions