From: Ralf Baechle Date: Wed, 15 Jul 2015 09:48:15 +0000 (+0200) Subject: MIPS: Treat CP1 control registers as unsigned ints. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git MIPS: Treat CP1 control registers as unsigned ints. These are bitfields and treating them as signed values doesn't make any sense. Signed-off-by: Ralf Baechle Reported-by: Chris Packham --- diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index 07bf4e7109ac..b688c924a025 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h @@ -1473,7 +1473,7 @@ do { \ */ #define _read_32bit_cp1_register(source, gas_hardfloat) \ ({ \ - int __res; \ + unsigned int __res; \ \ __asm__ __volatile__( \ " .set push \n" \