summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_handle.h
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@linux.org.tw>2014-12-01 01:46:20 +0800
committerChih-Wei Huang <cwhuang@linux.org.tw>2015-01-20 11:37:10 +0800
commit68a74eb31f139ad285a49451cf2ca8271c54f9bb (patch)
tree20b8afc9bd585d8e3f0b1bca9a5207a10501d2b7 /gralloc_drm_handle.h
parent9ce9cebffc405c64a9247d90ab4f2e8dfe07bf92 (diff)
downloadexternal_drm_gralloc-68a74eb31f139ad285a49451cf2ca8271c54f9bb.zip
external_drm_gralloc-68a74eb31f139ad285a49451cf2ca8271c54f9bb.tar.gz
external_drm_gralloc-68a74eb31f139ad285a49451cf2ca8271c54f9bb.tar.bz2
fix building issues of 64-bit targets
Just change the 'data' field of gralloc_drm_handle_t to be a pointer to struct gralloc_drm_bo_t. Fix some warnings as well.
Diffstat (limited to 'gralloc_drm_handle.h')
-rw-r--r--gralloc_drm_handle.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gralloc_drm_handle.h b/gralloc_drm_handle.h
index f7b03b2..7fc4746 100644
--- a/gralloc_drm_handle.h
+++ b/gralloc_drm_handle.h
@@ -31,6 +31,8 @@
extern "C" {
#endif
+struct gralloc_drm_bo_t;
+
struct gralloc_drm_handle_t {
native_handle_t base;
@@ -50,7 +52,7 @@ struct gralloc_drm_handle_t {
int stride; /* the stride in bytes */
int data_owner; /* owner of data (for validation) */
- int data; /* pointer to struct gralloc_drm_bo_t */
+ struct gralloc_drm_bo_t *data; /* pointer to struct gralloc_drm_bo_t */
};
static inline struct gralloc_drm_handle_t *gralloc_drm_handle(buffer_handle_t _handle)