From 881e69f185d2450ca35964caf254b04e7e8838c1 Mon Sep 17 00:00:00 2001 From: Cooper Yuan Date: Fri, 6 Jul 2012 16:26:49 +0200 Subject: [PATCH] libdrm/exynos: padding gem_mmap structure to 64-bit aligned --- exynos/exynos_drm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exynos/exynos_drm.h b/exynos/exynos_drm.h index dc2eef36..aa97b223 100644 --- a/exynos/exynos_drm.h +++ b/exynos/exynos_drm.h @@ -64,6 +64,7 @@ struct drm_exynos_gem_map_off { * A structure for mapping buffer. * * @handle: a handle to gem object created. + * @pad: just padding to be 64-bit aligned. * @size: memory size to be mapped. * @mapped: having user virtual address mmaped. * - this variable would be filled by exynos gem module @@ -72,7 +73,8 @@ struct drm_exynos_gem_map_off { */ struct drm_exynos_gem_mmap { unsigned int handle; - unsigned int size; + unsigned int pad; + uint64_t size; uint64_t mapped; };