ARC: Make pt_regs regs unsigned
authorVineet Gupta <vgupta@synopsys.com>
Wed, 5 Aug 2015 05:42:00 +0000 (11:12 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 5 Aug 2015 06:18:21 +0000 (11:48 +0530)
commit87ce62802f7a3553234ebf1ae7cd52c8bf272fb9
tree05cf0987ec30adfd5661e1dee2a1d16f0d4ff988
parentb89aa12c177477e34caa722818536fb5d0bffd76
ARC: Make pt_regs regs unsigned

KGDB fails to build after f51e2f191112 ("ARC: make sure instruction_pointer()
returns unsigned value")

The hack to force one specific reg to unsigned backfired. There's no
reason to keep the regs signed after all.

|  CC      arch/arc/kernel/kgdb.o
|../arch/arc/kernel/kgdb.c: In function 'kgdb_trap':
| ../arch/arc/kernel/kgdb.c:180:29: error: lvalue required as left operand of assignment
|   instruction_pointer(regs) -= BREAK_INSTR_SIZE;

Reported-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
Fixes: f51e2f191112 ("ARC: make sure instruction_pointer() returns unsigned value")
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/ptrace.h
arch/arc/include/uapi/asm/ptrace.h