From 90c7de66b96a116437b5784ebe0d056cb655a50f Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 11 Dec 2015 10:52:42 +0000 Subject: [PATCH] aarch64: make arm registers unsigned Follow the x86_64 example and define registers in arm_pt_regs as unsigned, to avoid potential sign extension bugs. This also fixes --enable-gcc-Werror build. * linux/aarch64/arch_regs.c (arm_pt_regs): Change uregs's type from int to uint32_t. Reported-by: Sergey Bolshakov --- linux/aarch64/arch_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/aarch64/arch_regs.c b/linux/aarch64/arch_regs.c index 78b74708..8e18a71c 100644 --- a/linux/aarch64/arch_regs.c +++ b/linux/aarch64/arch_regs.c @@ -1,5 +1,5 @@ struct arm_pt_regs { - int uregs[18]; + uint32_t uregs[18]; }; #define ARM_cpsr uregs[16] #define ARM_pc uregs[15] -- 2.50.1