x86_64: asm/ptrace.h needs linux/compiler.h
authorJean Delvare <khali@linux-fr.org>
Sat, 21 Jul 2007 15:09:52 +0000 (17:09 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 01:37:07 +0000 (18:37 -0700)
On x86_64, <asm/ptrace.h> uses __user but doesn't include
<linux/compiler.h>.  This could lead to build failures.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-x86_64/ptrace.h

index 5ea84db..7f166cc 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _X86_64_PTRACE_H
 #define _X86_64_PTRACE_H
 
+#include <linux/compiler.h>    /* For __user */
 #include <asm/ptrace-abi.h>
 
 #ifndef __ASSEMBLY__