Skip to contentSkip to conversation

drm/exynos: corrected size type.

PATCH Inki Dae 1 participant 1 message May 14, 2012

Subsystems (2)
lore
Share & tools
lore

Inki Dae

author
#0 lore raw

size type of drm_exynos_gem_mmap struct is corrected to uint64_t and it adds pad for the struct to be aligned as 64bit.

---
 include/drm/exynos_drm.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
include/drm/exynos_drm.h +3 -1
index 7eb7ae7..fd897a0 100644
@@ -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;
 };
 
Signature · 1 line
1.7.4.1