Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 893c9f03 authored by wya's avatar wya
Browse files

android: binder: Fix the binder transaction fail issue for 32bit target



If macro BINDER_IPC_32BIT define in binder.c file,
the type binder_size_t will build as 64bit,so move
BINDER_IPC_32BIT define to binder header file.

Change-Id: Ic94cee7ccff158a33739e60d254bec34801431a0
Signed-off-by: default avatarWen Yang <wya@codeaurora.org>
parent 86979a83
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -70,12 +70,6 @@
#include <linux/pid_namespace.h>
#include <linux/security.h>
#include <linux/spinlock.h>

#ifdef CONFIG_ANDROID_BINDER_IPC_32BIT
#define BINDER_IPC_32BIT 1
#endif

#include <uapi/linux/android/binder.h>
#include "binder_alloc.h"
#include "binder_trace.h"

+5 −0
Original line number Diff line number Diff line
@@ -22,6 +22,11 @@
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/list_lru.h>

#ifdef CONFIG_ANDROID_BINDER_IPC_32BIT
#define BINDER_IPC_32BIT 1
#endif

#include <uapi/linux/android/binder.h>

extern struct list_lru binder_alloc_lru;