Re: [PATCH v2 2/4] riscv: uaccess: use input constraints for ptr of __put_user

From: Charlie Jenkins
Date: Fri Jan 17 2025 - 18:23:56 EST


On Mon, Nov 18, 2024 at 11:01:10PM +0000, Cyril Bur wrote:
> From: Jisheng Zhang <jszhang@xxxxxxxxxx>
>
> I believe the output constraints "=m" is not necessary, because
> the instruction itself is "write", we don't need the compiler
> to "write" for us. So tell compiler we read from memory instead
> of writing.
>
> Signed-off-by: Jisheng Zhang <jszhang@xxxxxxxxxx>
> Signed-off-by: Cyril Bur <cyrilbur@xxxxxxxxxxxxxxx>

Reviewed-by: Charlie Jenkins <charlie@xxxxxxxxxxxx>
Tested-by: Charlie Jenkins <charlie@xxxxxxxxxxxx>