RISC-V: Fix raw_copy_{to,from}_user()
authorOlof Johansson <olof@lixom.net>
Thu, 15 Nov 2018 00:27:55 +0000 (16:27 -0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 20 Nov 2018 13:19:02 +0000 (05:19 -0800)
commit21f70d4abf9e17c2e3d7e64b7bfa3424e017f176
tree33a42a55c6cd9b197171f3bd8a93a8d32ba5ff1f
parent9ff01193a20d391e8dbce4403dd5ef87c7eaaca6
RISC-V: Fix raw_copy_{to,from}_user()

Sparse highlighted it, and appears to be a pure bug (from vs to).

./arch/riscv/include/asm/uaccess.h:403:35: warning: incorrect type in argument 1 (different address spaces)
./arch/riscv/include/asm/uaccess.h:403:39: warning: incorrect type in argument 2 (different address spaces)
./arch/riscv/include/asm/uaccess.h:409:37: warning: incorrect type in argument 1 (different address spaces)
./arch/riscv/include/asm/uaccess.h:409:41: warning: incorrect type in argument 2 (different address spaces)

Signed-off-by: Olof Johansson <olof@lixom.net>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/uaccess.h