From: Chris Wilson Subject: Re: [PATCH] drm/i915: Add to_user_ptr() Date: Fri, 22 Feb 2013 14:29:44 +0000 Message-ID: <20130222142944.GD23278@cantiga.alporthouse.com> References: <1361542371-28432-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id AD760E6B2B for ; Fri, 22 Feb 2013 06:29:54 -0800 (PST) Content-Disposition: inline In-Reply-To: <1361542371-28432-1-git-send-email-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Feb 22, 2013 at 04:12:51PM +0200, ville.syrjala@linux.intel.com wro= te: > From: Ville Syrj=E4l=E4 > = > 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=E4l=E4 Reviewed-by: Chris Wilson . -Chris -- = Chris Wilson, Intel Open Source Technology Centre