summaryrefslogtreecommitdiffstats
path: root/drivers/staging/android/binder.h
diff options
context:
space:
mode:
authorSerban Constantinescu <serban.constantinescu@arm.com>2013-07-04 10:54:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 14:37:21 -0700
commit397334fc2be6a7e2f77474bd2b24880efea007bf (patch)
tree6d0f1ceb8d48a56818d377ba66651d25c94788af /drivers/staging/android/binder.h
parentba628ad0baec436e9c0774a8b2125a860cc7742a (diff)
downloadop-kernel-dev-397334fc2be6a7e2f77474bd2b24880efea007bf.zip
op-kernel-dev-397334fc2be6a7e2f77474bd2b24880efea007bf.tar.gz
staging: android: binder: modify struct binder_write_read to use size_t
This change mirrors the userspace operation where struct binder_write_read members that specify the buffer size and consumed size are size_t elements. The patch also fixes the binder_thread_write() and binder_thread_read() functions prototypes to conform with the definition of binder_write_read. The changes do not affect existing 32bit ABI. Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com> Acked-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/binder.h')
-rw-r--r--drivers/staging/android/binder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/android/binder.h b/drivers/staging/android/binder.h
index dbe81ce..edab249 100644
--- a/drivers/staging/android/binder.h
+++ b/drivers/staging/android/binder.h
@@ -67,11 +67,11 @@ struct flat_binder_object {
*/
struct binder_write_read {
- signed long write_size; /* bytes to write */
- signed long write_consumed; /* bytes consumed by driver */
+ size_t write_size; /* bytes to write */
+ size_t write_consumed; /* bytes consumed by driver */
unsigned long write_buffer;
- signed long read_size; /* bytes to read */
- signed long read_consumed; /* bytes consumed by driver */
+ size_t read_size; /* bytes to read */
+ size_t read_consumed; /* bytes consumed by driver */
unsigned long read_buffer;
};
OpenPOWER on IntegriCloud