From 78bbf8edeac318510ff12508d6f597f3c6d62cc3 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Tue, 4 Apr 2017 10:35:08 +0900 Subject: nexell: add explicit cast for gem size The nexell gem alloc api has int parameter, so it should be casted to uint64_t for kernel gem alloc interface. Change-Id: Icc98b42645fd8ec234b99193304b5f91bcdd3389 Signed-off-by: Seung-Woo Kim --- nexell/nexell_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexell/nexell_drm.c b/nexell/nexell_drm.c index 8a8201e2..38b904ac 100644 --- a/nexell/nexell_drm.c +++ b/nexell/nexell_drm.c @@ -42,7 +42,7 @@ int nx_alloc_gem(int drm_fd, int size, int flags) struct nx_drm_gem_create arg = { 0, }; int ret; - arg.size = size; + arg.size = (uint64_t)size; arg.flags = flags; ret = drmCommandWriteRead(drm_fd, DRM_NX_GEM_CREATE, &arg, -- cgit v1.2.3