diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-04-01 05:59:08 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-04-01 16:58:29 -0400 |
commit | c2d15359c4b5476c181d8a51bdeba4cead15c120 (patch) | |
tree | 5eda8446a7f5c7932cdca95848b204e141edfa1d /drivers/gpu/drm/drm_cache.c | |
parent | 16c6c56bab1d9942c8089b7ea8a7382799fba5d8 (diff) |
drm: Make drm_clflush_virt_range() void*
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.
v2: Use void* arithmetic (Chris)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_cache.c')
-rw-r--r-- | drivers/gpu/drm/drm_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_cache.c b/drivers/gpu/drm/drm_cache.c index bb8f58012189..4bfad5f5a843 100644 --- a/drivers/gpu/drm/drm_cache.c +++ b/drivers/gpu/drm/drm_cache.c | |||
@@ -125,11 +125,11 @@ drm_clflush_sg(struct sg_table *st) | |||
125 | EXPORT_SYMBOL(drm_clflush_sg); | 125 | EXPORT_SYMBOL(drm_clflush_sg); |
126 | 126 | ||
127 | void | 127 | void |
128 | drm_clflush_virt_range(char *addr, unsigned long length) | 128 | drm_clflush_virt_range(void *addr, unsigned long length) |
129 | { | 129 | { |
130 | #if defined(CONFIG_X86) | 130 | #if defined(CONFIG_X86) |
131 | if (cpu_has_clflush) { | 131 | if (cpu_has_clflush) { |
132 | char *end = addr + length; | 132 | void *end = addr + length; |
133 | mb(); | 133 | mb(); |
134 | for (; addr < end; addr += boot_cpu_data.x86_clflush_size) | 134 | for (; addr < end; addr += boot_cpu_data.x86_clflush_size) |
135 | clflush(addr); | 135 | clflush(addr); |