Files
linux/arch/mips/include/asm
Paul Burton 445a58ce34 MIPS: math-emu: Correct user fault_addr type
The fault_addr argument to fpu_emulator_cop1Handler(), fpux_emu() and
cop1Emulate() has up until now been declared as:

  void *__user *fault_addr

This is essentially a pointer in user memory which points to a pointer
to void. This is not the intent for our code, which is actually
operating on a pointer to a pointer to void where the pointer to void is
pointing at user memory. ie. the pointer is in kernel memory & points to
user memory.

This mismatch produces a lot of sparse warnings that look like this:

arch/mips/math-emu/cp1emu.c:1485:45:
   warning: incorrect type in assignment (different address spaces)
      expected void *[noderef] <asn:1><noident>
      got unsigned int [noderef] [usertype] <asn:1>*[assigned] va

Fix these by modifying the declaration of the fault_addr argument to:

  void __user **fault_addr

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: trivial@kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17173/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2017-08-29 15:21:55 +02:00
..
2017-08-29 15:21:50 +02:00
2016-04-03 12:32:09 +02:00
2016-05-28 12:35:08 +02:00
2016-04-03 12:32:09 +02:00
2014-01-22 20:19:02 +01:00
2017-08-29 15:21:50 +02:00
2017-03-28 16:43:25 -04:00
2015-11-12 11:35:47 +01:00
2017-08-29 15:21:51 +02:00
2017-08-29 15:21:51 +02:00
2015-05-28 15:31:53 +02:00
2014-08-26 02:18:56 +02:00
2014-05-24 00:07:01 +02:00
2016-05-28 12:35:06 +02:00
2017-06-29 02:42:26 +02:00
2015-09-03 12:08:05 +02:00
2016-05-28 12:35:07 +02:00
2017-08-29 15:21:51 +02:00
2017-05-18 15:39:19 -05:00
2017-06-08 14:51:58 +02:00
2016-10-04 16:13:57 +02:00
2017-03-28 16:43:25 -04:00
2014-08-02 00:06:38 +02:00
2014-01-22 20:19:02 +01:00
2016-04-03 12:32:09 +02:00
2017-08-29 15:21:50 +02:00
2017-08-29 15:21:50 +02:00
2017-01-03 16:34:42 +01:00
2017-07-11 14:13:06 +02:00
2017-06-28 12:22:39 +02:00
2017-05-27 15:38:02 -04:00
2013-09-18 17:13:58 +02:00
2016-05-09 12:00:02 +02:00