From b52bf53d01b7179dd99ac03335bafdcbf68b7713 Mon Sep 17 00:00:00 2001 From: weishu Date: Wed, 9 Aug 2023 18:51:03 +0800 Subject: [PATCH] kernel: Fix compile err --- kernel/kernel_compat.c | 1 + kernel/kernel_compat.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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,