refresh patches
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From b492213c96ded86e7800b320706ad15bd31c7c1b Mon Sep 17 00:00:00 2001
|
||||
From ae8cebfd2446a0564c849adcd771ce538855b6b2 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Brauner <christian@brauner.io>
|
||||
Date: Wed, 16 Jan 2019 23:13:25 +0100
|
||||
Subject: [PATCH 1/4] binder: turn into module
|
||||
Subject: binder: turn into module
|
||||
|
||||
The Android binder driver needs to become a module for the sake of shipping
|
||||
Anbox. To do this we need to export the following functions since binder is
|
||||
@@ -29,6 +29,7 @@ Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
|
||||
[ arighi: zap_page_range() has been dropped, export zap_page_range_single() in 6.3 ]
|
||||
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
|
||||
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
---
|
||||
|
||||
--- a/drivers/android/Kconfig
|
||||
+++ b/drivers/android/Kconfig
|
||||
@@ -45,7 +46,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
Binderfs is a pseudo-filesystem for the Android Binder IPC driver
|
||||
--- a/drivers/android/binder.c
|
||||
+++ b/drivers/android/binder.c
|
||||
@@ -7027,9 +7027,20 @@ err_alloc_device_names_failed:
|
||||
@@ -7031,9 +7031,20 @@ err_alloc_device_names_failed:
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -79,7 +80,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
#include <linux/rbtree.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/mm.h>
|
||||
@@ -111,7 +112,7 @@ struct binder_alloc {
|
||||
@@ -120,7 +121,7 @@ struct binder_alloc {
|
||||
bool oneway_spam_detected;
|
||||
};
|
||||
|
||||
@@ -98,7 +99,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
#include <linux/list.h>
|
||||
#include <linux/miscdevice.h>
|
||||
#include <linux/mutex.h>
|
||||
@@ -78,7 +79,7 @@ extern const struct file_operations bind
|
||||
@@ -77,7 +78,7 @@ extern const struct file_operations bind
|
||||
|
||||
extern char *binder_devices_param;
|
||||
|
||||
@@ -107,7 +108,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
extern bool is_binderfs_device(const struct inode *inode);
|
||||
extern struct dentry *binderfs_create_file(struct dentry *dir, const char *name,
|
||||
const struct file_operations *fops,
|
||||
@@ -99,7 +100,7 @@ static inline struct dentry *binderfs_cr
|
||||
@@ -98,7 +99,7 @@ static inline struct dentry *binderfs_cr
|
||||
static inline void binderfs_remove_file(struct dentry *dentry) {}
|
||||
#endif
|
||||
|
||||
@@ -127,7 +128,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
#else
|
||||
bool use_reserve = true;
|
||||
#endif
|
||||
@@ -399,7 +399,7 @@ static int binderfs_binder_ctl_create(st
|
||||
@@ -402,7 +402,7 @@ static int binderfs_binder_ctl_create(st
|
||||
struct dentry *root = sb->s_root;
|
||||
struct binderfs_info *info = sb->s_fs_info;
|
||||
#if defined(CONFIG_IPC_NS)
|
||||
@@ -136,7 +137,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
#else
|
||||
bool use_reserve = true;
|
||||
#endif
|
||||
@@ -691,7 +691,7 @@ static int binderfs_fill_super(struct su
|
||||
@@ -694,7 +694,7 @@ static int binderfs_fill_super(struct su
|
||||
return -ENOMEM;
|
||||
info = sb->s_fs_info;
|
||||
|
||||
@@ -184,7 +185,7 @@ Signed-off-by: Alexandre Frade <kernel@xanmod.org>
|
||||
return container_of(ns, struct ipc_namespace, ns);
|
||||
--- a/mm/vmalloc.c
|
||||
+++ b/mm/vmalloc.c
|
||||
@@ -3176,6 +3176,7 @@ struct vm_struct *get_vm_area(unsigned l
|
||||
@@ -3181,6 +3181,7 @@ struct vm_struct *get_vm_area(unsigned l
|
||||
NUMA_NO_NODE, GFP_KERNEL,
|
||||
__builtin_return_address(0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user