make the patch specific to kernel 4.15 and later

The change starts with kernel 4.15.
This commit is contained in:
Mustafa Kuscu 2018-02-12 11:17:06 +03:00 committed by GitHub
commit f174331170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;