diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-18 22:26:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-18 22:26:11 -0500 |
commit | 90a4c0f51e8e44111a926be6f4c87af3938a79c3 (patch) | |
tree | 31253d716d1d677ab66b33094ffc8d737436c98d /arch/x86 | |
parent | f59e842fc0871cd5baa213dc32e0ce8e5aaf4758 (diff) |
uml: fix compile for x86-64
Randy Dunlap reports that we get
arch/x86/um/shared/sysdep/ptrace.h:7:20: error: redefinition of 'regs_return_value'
arch/x86/um/shared/sysdep/ptrace.h:7:20: note: previous definition of 'regs_return_value' was here
when compiling UML for x86-64.
Stephen Rothwell root-caused it and says:
"Caused by commit d7e7528bcd45 ("Audit: push audit success and retcode
into arch ptrace.h") (another patch that was never in linux-next :-().
This file now needs protection against double inclusion."
so let's do as the man says.
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Analyzed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/um/shared/sysdep/ptrace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/um/shared/sysdep/ptrace.h b/arch/x86/um/shared/sysdep/ptrace.h index 5ef9344a8b24..2bbe1ec2d96a 100644 --- a/arch/x86/um/shared/sysdep/ptrace.h +++ b/arch/x86/um/shared/sysdep/ptrace.h | |||
@@ -1,3 +1,6 @@ | |||
1 | #ifndef __SYSDEP_X86_PTRACE_H | ||
2 | #define __SYSDEP_X86_PTRACE_H | ||
3 | |||
1 | #ifdef __i386__ | 4 | #ifdef __i386__ |
2 | #include "ptrace_32.h" | 5 | #include "ptrace_32.h" |
3 | #else | 6 | #else |
@@ -8,3 +11,5 @@ static inline long regs_return_value(struct uml_pt_regs *regs) | |||
8 | { | 11 | { |
9 | return UPT_SYSCALL_RET(regs); | 12 | return UPT_SYSCALL_RET(regs); |
10 | } | 13 | } |
14 | |||
15 | #endif /* __SYSDEP_X86_PTRACE_H */ | ||