]> git.baikalelectronics.ru Git - kernel.git/commit
microblaze: Use unsigned return type in do_syscall_trace_enter
authorMichal Simek <michal.simek@xilinx.com>
Thu, 18 Dec 2014 14:41:13 +0000 (15:41 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 5 Jan 2015 11:36:43 +0000 (12:36 +0100)
commit00ac4e331b75c17c463a9aa908e35209fa1649b4
treee8551350abb07213efd47632e44452de615f818a
parent7f81ba7287ec34680e147d42656ebca478cdc65d
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>
arch/microblaze/include/asm/syscall.h
arch/microblaze/kernel/ptrace.c