mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
xtensa: fix type conversion in __get_user_size
8-byte access in __get_user_size converts pointer to temporary variable to the type of original user pointer and then dereferences it, resulting in the following sparse warning: sparse: warning: dereference of noderef expression Instead dereference the original user pointer under the __typeof__ and add indirection outside. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
3ac4a615bd
commit
c22f907504
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ do { \
|
|||
retval = -EFAULT; \
|
||||
(x) = 0; \
|
||||
} else { \
|
||||
(x) = *(__force __typeof__((ptr)))&__x; \
|
||||
(x) = *(__force __typeof__(*(ptr)) *)&__x; \
|
||||
} \
|
||||
break; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Reference in a new issue