mirror of
				https://github.com/choff/anbox-modules.git
				synced 2025-11-04 07:42:37 +08:00 
			
		
		
		
	fix erros
This commit is contained in:
		
							parent
							
								
									8148a16275
								
							
						
					
					
						commit
						5934ee9988
					
				@ -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(
 | 
			
		||||
 | 
			
		||||
@ -23,6 +23,7 @@
 | 
			
		||||
#include <linux/uaccess.h>
 | 
			
		||||
#include <linux/highmem.h>
 | 
			
		||||
#include <linux/sizes.h>
 | 
			
		||||
#include <linux/mmap_lock.h>
 | 
			
		||||
#include "binder_alloc.h"
 | 
			
		||||
#include "binder_trace.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -9,6 +9,7 @@
 | 
			
		||||
#include <linux/kallsyms.h>
 | 
			
		||||
#include <linux/kprobes.h>
 | 
			
		||||
#include <linux/version.h>
 | 
			
		||||
#include <linux/task_work.h>
 | 
			
		||||
 | 
			
		||||
#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");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user