Re: [PATCH] RISC-V: Fix raw_copy_{to,from}_user()

2018-11-15 Thread Olof Johansson
On Thu, Nov 15, 2018 at 6:59 AM Palmer Dabbelt wrote: > > On Wed, 14 Nov 2018 16:27:55 PST (-0800), Olof Johansson wrote: > > 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 a

Re: [PATCH] RISC-V: Fix raw_copy_{to,from}_user()

2018-11-15 Thread Palmer Dabbelt
On Wed, 14 Nov 2018 16:27:55 PST (-0800), Olof Johansson wrote: 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: incor

[PATCH] RISC-V: Fix raw_copy_{to,from}_user()

2018-11-14 Thread Olof Johansson
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/i