[PATCH] drm: Make drm_clflush_virt_range() void*

Chris Wilson chris at chris-wilson.co.uk
Mon Mar 31 08:40:47 PDT 2014


On Mon, Mar 31, 2014 at 06:08:51PM +0300, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Currently drm_cflush_virt_rage() takes a char* so the caller probably
> has to do pointless casting to avoid compiler warnings. Make the
> argument void* instead to avoid such issues.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

Can we not use a gcc'ism to allow pointer arithmetic on void *?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the dri-devel mailing list