From 3b478b9d3f33bb0967c1da3414c61a20124d95a7 Mon Sep 17 00:00:00 2001 From: myfluxi Date: Wed, 14 Oct 2015 20:49:38 +0200 Subject: [PATCH] ion: Add ion_user_handle_t to make userspace happy Change-Id: If291c13d02274eb8200090254dac1a6a969a32e1 --- include/linux/ion.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/linux/ion.h b/include/linux/ion.h index eeee5ea007b8..7436e3de6ca3 100644 --- a/include/linux/ion.h +++ b/include/linux/ion.h @@ -22,6 +22,7 @@ #include struct ion_handle; +typedef struct ion_handle *ion_user_handle_t; /** * enum ion_heap_types - list of all possible types of heaps * @ION_HEAP_TYPE_SYSTEM: memory allocated via vmalloc @@ -537,7 +538,7 @@ struct ion_allocation_data { unsigned int heap_id_mask; #endif unsigned int flags; - struct ion_handle *handle; + ion_user_handle_t handle; }; /** @@ -551,7 +552,7 @@ struct ion_allocation_data { * provides the file descriptor and the kernel returns the handle. */ struct ion_fd_data { - struct ion_handle *handle; + ion_user_handle_t handle; int fd; }; @@ -560,7 +561,7 @@ struct ion_fd_data { * @handle: a handle */ struct ion_handle_data { - struct ion_handle *handle; + ion_user_handle_t handle; }; /**