staging: android: binder: fix ABI for 64bit Android
authorSerban Constantinescu <serban.constantinescu@arm.com>
Wed, 15 Jan 2014 11:28:36 +0000 (11:28 +0000)
committerDavid Butcher <david.butcher@arm.com>
Thu, 16 Jan 2014 14:11:43 +0000 (14:11 +0000)
commite6395fe2411c2dda02c6052c7bbca32b56f10026
tree72f59d2e8f306302beb12852b5dff4095e042b30
parentc44aa763f58444937c8320171e08ceffde811ba7
staging: android: binder: fix ABI for 64bit Android

This patch fixes the ABI for 64bit Android userspace.
BC_REQUEST_DEATH_NOTIFICATION and BC_CLEAR_DEATH_NOTIFICATION claim
to be using struct binder_ptr_cookie, but they are using a 32bit handle
and a pointer.

On 32bit systems the payload size is the same as the size of struct
binder_ptr_cookie, however for 64bit systems this will differ. This
patch adds struct binder_handle_cookie that fixes this issue for 64bit
Android.

Since there are no 64bit users of this interface that we know of this
change should not affect any existing systems.

Change-Id: I8909cbc50aad48ccf371270bad6f69ff242a8c22
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
drivers/staging/android/uapi/binder.h