From 5934ee9988a12f5bd6fbc32ce350b8330959cee7 Mon Sep 17 00:00:00 2001 From: Malcolm Date: Fri, 27 May 2022 00:55:25 +0800 Subject: [PATCH] fix erros --- binder/binder.c | 2 +- binder/binder_alloc.c | 1 + binder/deps.c | 7 +++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/binder/binder.c b/binder/binder.c index 1b97cfc..5717ad7 100644 --- a/binder/binder.c +++ b/binder/binder.c @@ -3181,7 +3181,7 @@ static void binder_transaction(struct binder_proc *proc, t->buffer->debug_id = t->debug_id; t->buffer->transaction = t; t->buffer->target_node = target_node; - t->buffer->clear_on_free = !!(t->flags & TF_CLEAR_BUF); + t->buffer->clear_on_free = !!(t->flags & 0x20); trace_binder_transaction_alloc_buf(t->buffer); if (binder_alloc_copy_user_to_buffer( diff --git a/binder/binder_alloc.c b/binder/binder_alloc.c index 61dd545..e16ce51 100644 --- a/binder/binder_alloc.c +++ b/binder/binder_alloc.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "binder_alloc.h" #include "binder_trace.h" diff --git a/binder/deps.c b/binder/deps.c index a97d546..1618e5b 100644 --- a/binder/deps.c +++ b/binder/deps.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "deps.h" @@ -140,11 +141,9 @@ int security_binder_transfer_file(struct task_struct *from, struct task_struct * return security_binder_transfer_file_ptr(from, to, file); } -static int (*task_work_add_ptr)(struct task_struct *task, struct callback_head *work, - enum task_work_notify_mode notify) = NULL; +static int (*task_work_add_ptr)(struct task_struct *task, struct callback_head *work, int) = NULL; -int task_work_add(struct task_struct *task, struct callback_head *work, - enum task_work_notify_mode notify) +int task_work_add(struct task_struct *task, struct callback_head *work, int notify) { if (!task_work_add_ptr) task_work_add_ptr = kallsyms_lookup_name_wrapper("task_work_add");