• Vineet Gupta's avatar
    ARC: Make pt_regs regs unsigned · 87ce6280
    Vineet Gupta authored
    KGDB fails to build after f51e2f19 ("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: default avatarYuriy Kolerov <yuriy.kolerov@synopsys.com>
    Fixes: f51e2f19 ("ARC: make sure instruction_pointer() returns unsigned value")
    Cc: Alexey Brodkin <abrodkin@synopsys.com>
    Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    87ce6280
ptrace.h 1.67 KB