|
@@ -1701,7 +1701,7 @@ err_no_context_mgr_node:
|
|
|
}
|
|
|
|
|
|
int binder_thread_write(struct binder_proc *proc, struct binder_thread *thread,
|
|
|
- void __user *buffer, int size, signed long *consumed)
|
|
|
+ void __user *buffer, size_t size, size_t *consumed)
|
|
|
{
|
|
|
uint32_t cmd;
|
|
|
void __user *ptr = buffer + *consumed;
|
|
@@ -2081,8 +2081,8 @@ static int binder_has_thread_work(struct binder_thread *thread)
|
|
|
|
|
|
static int binder_thread_read(struct binder_proc *proc,
|
|
|
struct binder_thread *thread,
|
|
|
- void __user *buffer, int size,
|
|
|
- signed long *consumed, int non_block)
|
|
|
+ void __user *buffer, size_t size,
|
|
|
+ size_t *consumed, int non_block)
|
|
|
{
|
|
|
void __user *ptr = buffer + *consumed;
|
|
|
void __user *end = buffer + size;
|
|
@@ -2579,7 +2579,7 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|
|
goto err;
|
|
|
}
|
|
|
binder_debug(BINDER_DEBUG_READ_WRITE,
|
|
|
- "%d:%d write %ld at %08lx, read %ld at %08lx\n",
|
|
|
+ "%d:%d write %zd at %08lx, read %zd at %08lx\n",
|
|
|
proc->pid, thread->pid, bwr.write_size,
|
|
|
bwr.write_buffer, bwr.read_size, bwr.read_buffer);
|
|
|
|
|
@@ -2605,7 +2605,7 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|
|
}
|
|
|
}
|
|
|
binder_debug(BINDER_DEBUG_READ_WRITE,
|
|
|
- "%d:%d wrote %ld of %ld, read return %ld of %ld\n",
|
|
|
+ "%d:%d wrote %zd of %zd, read return %zd of %zd\n",
|
|
|
proc->pid, thread->pid, bwr.write_consumed, bwr.write_size,
|
|
|
bwr.read_consumed, bwr.read_size);
|
|
|
if (copy_to_user(ubuf, &bwr, sizeof(bwr))) {
|