hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/riscv/include/asm/uaccess.h
....@@ -216,7 +216,7 @@
216216 might_fault(); \
217217 access_ok(__p, sizeof(*__p)) ? \
218218 __get_user((x), __p) : \
219
- ((x) = 0, -EFAULT); \
219
+ ((x) = (__force __typeof__(x))0, -EFAULT); \
220220 })
221221
222222 #define __put_user_asm(insn, x, ptr, err) \