RISC-V: Fix raw_copy_{to,from}_user()
authorOlof Johansson <olof@lixom.net>
Thu, 15 Nov 2018 00:27:55 +0000 (16:27 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 15:13:08 +0000 (16:13 +0100)
commita0d5f816c574fe5faaba7c19f4a3b5b11aca8c63
tree18a6c33978b212530053c0fbb0fd9a9a2a76f978
parent0483179a330f1ceeae6ba781f3590fd61b3502e8
RISC-V: Fix raw_copy_{to,from}_user()

commit 21f70d4abf9e17c2e3d7e64b7bfa3424e017f176 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/include/asm/uaccess.h