diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2014-12-01 01:46:20 +0800 |
---|---|---|
committer | Chih-Wei Huang <cwhuang@linux.org.tw> | 2015-01-20 11:37:10 +0800 |
commit | 68a74eb31f139ad285a49451cf2ca8271c54f9bb (patch) | |
tree | 20b8afc9bd585d8e3f0b1bca9a5207a10501d2b7 /gralloc_drm.c | |
parent | 9ce9cebffc405c64a9247d90ab4f2e8dfe07bf92 (diff) | |
download | external_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.c')
-rw-r--r-- | gralloc_drm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gralloc_drm.c b/gralloc_drm.c index bd38d57..31ac988 100644 --- a/gralloc_drm.c +++ b/gralloc_drm.c @@ -211,10 +211,10 @@ static struct gralloc_drm_bo_t *validate_handle(buffer_handle_t _handle, } handle->data_owner = gralloc_drm_get_pid(); - handle->data = (int) bo; + handle->data = bo; } - return (struct gralloc_drm_bo_t *) handle->data; + return handle->data; } /* @@ -296,7 +296,7 @@ struct gralloc_drm_bo_t *gralloc_drm_bo_create(struct gralloc_drm_t *drm, bo->refcount = 1; handle->data_owner = gralloc_drm_get_pid(); - handle->data = (int) bo; + handle->data = bo; return bo; } @@ -365,7 +365,7 @@ void gralloc_drm_resolve_format(buffer_handle_t _handle, uint32_t *pitches, uint32_t *offsets, uint32_t *handles) { struct gralloc_drm_handle_t *handle = gralloc_drm_handle(_handle); - struct gralloc_drm_bo_t *bo = (struct gralloc_drm_bo_t *) handle->data; + struct gralloc_drm_bo_t *bo = handle->data; struct gralloc_drm_t *drm = bo->drm; /* if handle exists and driver implements resolve_format */ |