From f17433117097222298f4f68a16da90b596265fbb Mon Sep 17 00:00:00 2001 From: Mustafa Kuscu Date: Mon, 12 Feb 2018 11:17:06 +0300 Subject: [PATCH] make the patch specific to kernel 4.15 and later The change starts with kernel 4.15. --- kernel/binder/binder.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/binder/binder.c b/kernel/binder/binder.c index f904646..9ccadf1 100644 --- a/kernel/binder/binder.c +++ b/kernel/binder/binder.c @@ -137,7 +137,11 @@ static DECLARE_WAIT_QUEUE_HEAD(binder_user_error_wait); static int binder_stop_on_user_error; static int binder_set_stop_on_user_error(const char *val, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) const struct kernel_param *kp) +#else + struct kernel_param *kp) +#endif { int ret;