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)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <linux/printk.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/sched/task_stack.h>
|
||||
#include <linux/slab.h>
|
||||
#include <asm-generic/errno-base.h>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user