From 96139986b39d0c3e915689ed3f57e5393cdf824e Mon Sep 17 00:00:00 2001 From: Huy Minh <39849246+hmtheboy154@users.noreply.github.com> Date: Mon, 19 Dec 2022 19:38:20 +0700 Subject: [PATCH] kernel: Include task_stack.h in sucompat.c (#6) Fixed the following error when compiling ld.lld: error: undefined symbol: task_stack_page >>> referenced by ld-temp.o >>> vmlinux.o:(sh_user_path) --- kernel/sucompat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sucompat.c b/kernel/sucompat.c index 43860e24..18933a81 100644 --- a/kernel/sucompat.c +++ b/kernel/sucompat.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -144,4 +145,4 @@ void enable_sucompat() { pr_info("newfstatat_kp: %d\n", ret); ret = register_kprobe(&faccessat_kp); pr_info("faccessat_kp: %d\n", ret); -} \ No newline at end of file +}