diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-12-18 15:41:13 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-01-05 12:36:43 +0100 |
commit | 8543e6c96762fcc930af5725088c2b9e4865c3aa (patch) | |
tree | e8551350abb07213efd47632e44452de615f818a /arch/microblaze/include | |
parent | f396a4d2314bf1cb83148d9b8fc47995e6c27e1f (diff) | |
download | linux-8543e6c96762fcc930af5725088c2b9e4865c3aa.tar.gz linux-8543e6c96762fcc930af5725088c2b9e4865c3aa.tar.bz2 linux-8543e6c96762fcc930af5725088c2b9e4865c3aa.zip |
microblaze: Use unsigned return type in do_syscall_trace_enter
Registers are not signed types.
The patch removes warnings:
arch/microblaze/kernel/ptrace.c: In function 'do_syscall_trace_enter':
arch/microblaze/kernel/ptrace.c:152:14: warning: signed and unsigned
type in conditional expression [-Wsign-compare]
return ret ?: regs->r12;
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/syscall.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/syscall.h b/arch/microblaze/include/asm/syscall.h index 53cfaf34c343..04a5bece8168 100644 --- a/arch/microblaze/include/asm/syscall.h +++ b/arch/microblaze/include/asm/syscall.h @@ -97,7 +97,7 @@ static inline void syscall_set_arguments(struct task_struct *task, microblaze_set_syscall_arg(regs, i++, *args++); } -asmlinkage long do_syscall_trace_enter(struct pt_regs *regs); +asmlinkage unsigned long do_syscall_trace_enter(struct pt_regs *regs); asmlinkage void do_syscall_trace_leave(struct pt_regs *regs); static inline int syscall_get_arch(void) |