diff --git a/kernel/kernel_compat.c b/kernel/kernel_compat.c index 3c2f1d3d..88e256d4 100644 --- a/kernel/kernel_compat.c +++ b/kernel/kernel_compat.c @@ -3,6 +3,7 @@ #include "linux/nsproxy.h" #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0) #include "linux/sched/task.h" +#include "linux/uaccess.h" #else #include "linux/sched.h" #endif diff --git a/kernel/kernel_compat.h b/kernel/kernel_compat.h index c0b81a47..f97080d4 100644 --- a/kernel/kernel_compat.h +++ b/kernel/kernel_compat.h @@ -4,7 +4,6 @@ #include "linux/fs.h" #include "linux/key.h" #include "linux/version.h" -#include "linux/uaccess.h" extern long ksu_strncpy_from_user_nofault(char *dst, const void __user *unsafe_addr,