diff options
author | David S. Miller <davem@davemloft.net> | 2008-03-26 03:46:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-26 03:46:21 -0400 |
commit | bfdf9ebc396a2373af2f1d117491dc6bbdc9ee75 (patch) | |
tree | 88c1e257edfb539c4c69176093a0d2680912875d /arch/sparc64/kernel/ptrace.c | |
parent | d91aa123b4b96e57680a39fb9dfd9722f8df3c7e (diff) |
[SPARC64]: Fix sparse warnings in arch/sparc64/kernel/ptrace.c
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/ptrace.c')
-rw-r--r-- | arch/sparc64/kernel/ptrace.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c index 9a1ba1fe859d..4b31d2ff69bf 100644 --- a/arch/sparc64/kernel/ptrace.c +++ b/arch/sparc64/kernel/ptrace.c | |||
@@ -35,6 +35,9 @@ | |||
35 | #include <asm/spitfire.h> | 35 | #include <asm/spitfire.h> |
36 | #include <asm/page.h> | 36 | #include <asm/page.h> |
37 | #include <asm/cpudata.h> | 37 | #include <asm/cpudata.h> |
38 | #include <asm/cacheflush.h> | ||
39 | |||
40 | #include "entry.h" | ||
38 | 41 | ||
39 | /* #define ALLOW_INIT_TRACING */ | 42 | /* #define ALLOW_INIT_TRACING */ |
40 | 43 | ||
@@ -807,11 +810,14 @@ struct fps { | |||
807 | long arch_ptrace(struct task_struct *child, long request, long addr, long data) | 810 | long arch_ptrace(struct task_struct *child, long request, long addr, long data) |
808 | { | 811 | { |
809 | const struct user_regset_view *view = task_user_regset_view(child); | 812 | const struct user_regset_view *view = task_user_regset_view(child); |
810 | struct pt_regs __user *pregs = (struct pt_regs __user *) addr; | ||
811 | unsigned long addr2 = task_pt_regs(current)->u_regs[UREG_I4]; | 813 | unsigned long addr2 = task_pt_regs(current)->u_regs[UREG_I4]; |
812 | struct fps __user *fps = (struct fps __user *) addr; | 814 | struct pt_regs __user *pregs; |
815 | struct fps __user *fps; | ||
813 | int ret; | 816 | int ret; |
814 | 817 | ||
818 | pregs = (struct pt_regs __user *) (unsigned long) addr; | ||
819 | fps = (struct fps __user *) (unsigned long) addr; | ||
820 | |||
815 | switch (request) { | 821 | switch (request) { |
816 | case PTRACE_PEEKUSR: | 822 | case PTRACE_PEEKUSR: |
817 | ret = (addr != 0) ? -EIO : 0; | 823 | ret = (addr != 0) ? -EIO : 0; |