瀏覽代碼

[PATCH] user_mode_vm() build fix

include/asm/ptrace.h: In function `user_mode_vm':
include/asm/ptrace.h:67: `VM_MASK' undeclared (first use in this function)

Cc: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Andrew Morton 20 年之前
父節點
當前提交
388b0925f5
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/asm-i386/ptrace.h

+ 3 - 0
include/asm-i386/ptrace.h

@@ -55,6 +55,9 @@ struct pt_regs {
 #define PTRACE_SET_THREAD_AREA    26
 
 #ifdef __KERNEL__
+
+#include <asm/vm86.h>
+
 struct task_struct;
 extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code);