kernel/arch/riscv/include/asm/uaccess.h
.. .. @@ -216,7 +216,7 @@ 216 216 might_fault(); \ 217 217 access_ok(__p, sizeof(*__p)) ? \ 218 218 __get_user((x), __p) : \ 219 - ((x) = 0, -EFAULT); \219 + ((x) = (__force __typeof__(x))0, -EFAULT); \220 220 }) 221 221 222 222 #define __put_user_asm(insn, x, ptr, err) \