diff options
author | David S. Miller <davem@davemloft.net> | 2008-03-26 07:31:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-26 07:31:50 -0400 |
commit | 11cc8a3abf5556d9f24395d87573532420d5ace7 (patch) | |
tree | bcd3c23f2b64c97fc5e6dff1b74034003410fece /arch/sparc64 | |
parent | 69072f6e8e4bd4799d2a54e4ff8771d0657512c1 (diff) |
[SPARC64]: Fix allnoconfig build, ptrace.c missing CONFIG_COMPAT checks.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/kernel/ptrace.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c index 4b31d2ff69bf..bcf58ece2ba1 100644 --- a/arch/sparc64/kernel/ptrace.c +++ b/arch/sparc64/kernel/ptrace.c | |||
@@ -385,6 +385,7 @@ static const struct user_regset_view user_sparc64_view = { | |||
385 | .regsets = sparc64_regsets, .n = ARRAY_SIZE(sparc64_regsets) | 385 | .regsets = sparc64_regsets, .n = ARRAY_SIZE(sparc64_regsets) |
386 | }; | 386 | }; |
387 | 387 | ||
388 | #ifdef CONFIG_COMPAT | ||
388 | static int genregs32_get(struct task_struct *target, | 389 | static int genregs32_get(struct task_struct *target, |
389 | const struct user_regset *regset, | 390 | const struct user_regset *regset, |
390 | unsigned int pos, unsigned int count, | 391 | unsigned int pos, unsigned int count, |
@@ -679,14 +680,18 @@ static const struct user_regset_view user_sparc32_view = { | |||
679 | .name = "sparc", .e_machine = EM_SPARC, | 680 | .name = "sparc", .e_machine = EM_SPARC, |
680 | .regsets = sparc32_regsets, .n = ARRAY_SIZE(sparc32_regsets) | 681 | .regsets = sparc32_regsets, .n = ARRAY_SIZE(sparc32_regsets) |
681 | }; | 682 | }; |
683 | #endif /* CONFIG_COMPAT */ | ||
682 | 684 | ||
683 | const struct user_regset_view *task_user_regset_view(struct task_struct *task) | 685 | const struct user_regset_view *task_user_regset_view(struct task_struct *task) |
684 | { | 686 | { |
687 | #ifdef CONFIG_COMPAT | ||
685 | if (test_tsk_thread_flag(task, TIF_32BIT)) | 688 | if (test_tsk_thread_flag(task, TIF_32BIT)) |
686 | return &user_sparc32_view; | 689 | return &user_sparc32_view; |
690 | #endif | ||
687 | return &user_sparc64_view; | 691 | return &user_sparc64_view; |
688 | } | 692 | } |
689 | 693 | ||
694 | #ifdef CONFIG_COMPAT | ||
690 | struct compat_fps { | 695 | struct compat_fps { |
691 | unsigned int regs[32]; | 696 | unsigned int regs[32]; |
692 | unsigned int fsr; | 697 | unsigned int fsr; |
@@ -801,6 +806,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request, | |||
801 | 806 | ||
802 | return ret; | 807 | return ret; |
803 | } | 808 | } |
809 | #endif /* CONFIG_COMPAT */ | ||
804 | 810 | ||
805 | struct fps { | 811 | struct fps { |
806 | unsigned int regs[64]; | 812 | unsigned int regs[64]; |