From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 15 Jul 2015 09:48:15 +0000 (+0200)
Subject: MIPS: Treat CP1 control registers as unsigned ints.
X-Git-Tag: firefly_0821_release~176^2~1148^2~98
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d;p=firefly-linux-kernel-4.4.55.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 <ralf@linux-mips.org>
Reported-by: Chris Packham <judge.packham@gmail.com>
---

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"	\