forked from luck/tmp_suning_uos_patched
parisc/uaccess: fix sparse errors
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Helge Deller <deller@gmx.de> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
cf635f8dfd
commit
876b2a0083
|
@ -104,7 +104,7 @@ struct exception_data {
|
|||
} \
|
||||
} \
|
||||
\
|
||||
(x) = (__typeof__(*(ptr))) __gu_val; \
|
||||
(x) = (__force __typeof__(*(ptr))) __gu_val; \
|
||||
__gu_err; \
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user