summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xen/xen_drm_front.h
diff options
context:
space:
mode:
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>2018-05-23 14:36:30 +0300
committerOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>2018-05-25 08:28:41 +0300
commit9eece5d9c6e0316f17091e37ff3ec87331bdedf3 (patch)
treead537b572d4a34fa65e30b0c765f0704e29f2cd6 /drivers/gpu/drm/xen/xen_drm_front.h
parent2edd4e698dc8a0c497a502c75561c87be0e8a9a6 (diff)
drm/xen-front: fix pointer casts
Building for a 32-bit target results in warnings from casting between a 32-bit pointer and a 64-bit integer. Fix the warnings by casting those pointers to uintptr_t first. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Reviewed-by: Juergen Gross <jgross@suse.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180523113630.29811-1-andr2000@gmail.com
Diffstat (limited to 'drivers/gpu/drm/xen/xen_drm_front.h')
-rw-r--r--drivers/gpu/drm/xen/xen_drm_front.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xen/xen_drm_front.h b/drivers/gpu/drm/xen/xen_drm_front.h
index 2c2479b571ae..5693b4a4b02b 100644
--- a/drivers/gpu/drm/xen/xen_drm_front.h
+++ b/drivers/gpu/drm/xen/xen_drm_front.h
@@ -126,12 +126,12 @@ struct xen_drm_front_drm_info {
static inline u64 xen_drm_front_fb_to_cookie(struct drm_framebuffer *fb)
{
- return (u64)fb;
+ return (uintptr_t)fb;
}
static inline u64 xen_drm_front_dbuf_to_cookie(struct drm_gem_object *gem_obj)
{
- return (u64)gem_obj;
+ return (uintptr_t)gem_obj;
}
int xen_drm_front_mode_set(struct xen_drm_front_drm_pipeline *pipeline,