From 7a850ca1a0f78e2ad133350441f479679ed89459 Mon Sep 17 00:00:00 2001 From: liangshenglin1 Date: Sat, 11 Sep 2021 18:09:05 +0800 Subject: [PATCH] fix ipc ioctl -22 error Signed-off-by: liangshenglin1 --- linux-4.19/hi3516dv300_patch/hi3516dv300_small.patch | 12 ++++++++++++ linux-5.10/hi3516dv300_patch/hi3516dv300_small.patch | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 linux-4.19/hi3516dv300_patch/hi3516dv300_small.patch create mode 100644 linux-5.10/hi3516dv300_patch/hi3516dv300_small.patch diff --git a/linux-4.19/hi3516dv300_patch/hi3516dv300_small.patch b/linux-4.19/hi3516dv300_patch/hi3516dv300_small.patch new file mode 100644 index 0000000..4d22609 --- /dev/null +++ b/linux-4.19/hi3516dv300_patch/hi3516dv300_small.patch @@ -0,0 +1,12 @@ +diff --git a/include/uapi/linux/android/binder.h b/include/uapi/linux/android/binder.h +index bfaec6903b8b..ec56de66f407 100644 +--- a/include/uapi/linux/android/binder.h ++++ b/include/uapi/linux/android/binder.h +@@ -27,6 +27,7 @@ + #define B_PACK_CHARS(c1, c2, c3, c4) \ + ((((c1)<<24)) | (((c2)<<16)) | (((c3)<<8)) | (c4)) + #define B_TYPE_LARGE 0x85 ++#define BINDER_IPC_32BIT 1 + + enum { + BINDER_TYPE_BINDER = B_PACK_CHARS('s', 'b', '*', B_TYPE_LARGE), diff --git a/linux-5.10/hi3516dv300_patch/hi3516dv300_small.patch b/linux-5.10/hi3516dv300_patch/hi3516dv300_small.patch new file mode 100644 index 0000000..ac847d6 --- /dev/null +++ b/linux-5.10/hi3516dv300_patch/hi3516dv300_small.patch @@ -0,0 +1,12 @@ +diff --git a/include/uapi/linux/android/binder.h b/include/uapi/linux/android/binder.h +index ec84ad106568..9d7b05055726 100644 +--- a/include/uapi/linux/android/binder.h ++++ b/include/uapi/linux/android/binder.h +@@ -27,6 +27,7 @@ + #define B_PACK_CHARS(c1, c2, c3, c4) \ + ((((c1)<<24)) | (((c2)<<16)) | (((c3)<<8)) | (c4)) + #define B_TYPE_LARGE 0x85 ++#define BINDER_IPC_32BIT 1 + + enum { + BINDER_TYPE_BINDER = B_PACK_CHARS('s', 'b', '*', B_TYPE_LARGE), -- Gitee