diff options
| author | Michal Simek <michal.simek@xilinx.com> | 2014-12-18 09:41:13 -0500 |
|---|---|---|
| committer | Michal Simek <michal.simek@xilinx.com> | 2015-01-05 06:36:43 -0500 |
| commit | 8543e6c96762fcc930af5725088c2b9e4865c3aa (patch) | |
| tree | e8551350abb07213efd47632e44452de615f818a /arch/microblaze/kernel | |
| parent | f396a4d2314bf1cb83148d9b8fc47995e6c27e1f (diff) | |
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/kernel')
| -rw-r--r-- | arch/microblaze/kernel/ptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/ptrace.c b/arch/microblaze/kernel/ptrace.c index bb10637ce688..8cfa98cadf3d 100644 --- a/arch/microblaze/kernel/ptrace.c +++ b/arch/microblaze/kernel/ptrace.c | |||
| @@ -132,9 +132,9 @@ long arch_ptrace(struct task_struct *child, long request, | |||
| 132 | return rval; | 132 | return rval; |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | asmlinkage long do_syscall_trace_enter(struct pt_regs *regs) | 135 | asmlinkage unsigned long do_syscall_trace_enter(struct pt_regs *regs) |
| 136 | { | 136 | { |
| 137 | long ret = 0; | 137 | unsigned long ret = 0; |
| 138 | 138 | ||
| 139 | secure_computing_strict(regs->r12); | 139 | secure_computing_strict(regs->r12); |
| 140 | 140 | ||
