diff options
author | Roland McGrath <roland@redhat.com> | 2008-04-28 16:57:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 17:14:36 -0400 |
commit | 9d04d9280c4bbf6950b70b705bc4ace41de65615 (patch) | |
tree | 594f4d9faf9d830fc7b1a7589e4a61f16b1fdf58 | |
parent | e97e386b126c2d60b8da61ce1e4964b41b3d1514 (diff) |
ptrace: conditionalize compat_ptrace_request
My recent additions to compat_ptrace_request made it mandatory
for CONFIG_COMPAT arch's to define copy_siginfo_from_user32.
This broke some builds, though they all really should get cleaned
up in that way.
Since all the arch's that actually call compat_ptrace_request have
now been cleaned up to use the generic compat_sys_ptrace, we can
avoid the build problems on the crufty arch's by changing the
conditionals on the definition.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | kernel/ptrace.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 67e392ed5496..dac4b4e57293 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -612,7 +612,7 @@ int generic_ptrace_pokedata(struct task_struct *tsk, long addr, long data) | |||
612 | return (copied == sizeof(data)) ? 0 : -EIO; | 612 | return (copied == sizeof(data)) ? 0 : -EIO; |
613 | } | 613 | } |
614 | 614 | ||
615 | #ifdef CONFIG_COMPAT | 615 | #if defined CONFIG_COMPAT && defined __ARCH_WANT_COMPAT_SYS_PTRACE |
616 | #include <linux/compat.h> | 616 | #include <linux/compat.h> |
617 | 617 | ||
618 | int compat_ptrace_request(struct task_struct *child, compat_long_t request, | 618 | int compat_ptrace_request(struct task_struct *child, compat_long_t request, |
@@ -667,7 +667,6 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request, | |||
667 | return ret; | 667 | return ret; |
668 | } | 668 | } |
669 | 669 | ||
670 | #ifdef __ARCH_WANT_COMPAT_SYS_PTRACE | ||
671 | asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid, | 670 | asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid, |
672 | compat_long_t addr, compat_long_t data) | 671 | compat_long_t addr, compat_long_t data) |
673 | { | 672 | { |
@@ -710,6 +709,4 @@ asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid, | |||
710 | unlock_kernel(); | 709 | unlock_kernel(); |
711 | return ret; | 710 | return ret; |
712 | } | 711 | } |
713 | #endif /* __ARCH_WANT_COMPAT_SYS_PTRACE */ | 712 | #endif /* CONFIG_COMPAT && __ARCH_WANT_COMPAT_SYS_PTRACE */ |
714 | |||
715 | #endif /* CONFIG_COMPAT */ | ||