Skip to content

Commit

Permalink
x86_64: asm/ptrace.h needs linux/compiler.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and Linus Torvalds committed Jul 22, 2007
1 parent 65d2f0b commit 9d531cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-x86_64/ptrace.h
Original file line number Diff line number Diff line change
@@ -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__
Expand Down

0 comments on commit 9d531cc

Please sign in to comment.