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)
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

index 53cfaf34c34330eeda9811a96b86867bd924cd45..04a5bece8168912e963bd614c126fd045d4b32cf 100644 (file)
@@ -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)
index bb10637ce688b389b61a4516f2fb691f0d7b4266..8cfa98cadf3d101aadefc3a243c27b91813be21e 100644 (file)
@@ -132,9 +132,9 @@ long arch_ptrace(struct task_struct *child, long request,
        return rval;
 }
 
-asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
+asmlinkage unsigned long do_syscall_trace_enter(struct pt_regs *regs)
 {
-       long ret = 0;
+       unsigned long ret = 0;
 
        secure_computing_strict(regs->r12);