Skip to content

Commit 876b2a0

Browse files
mstsirkinhdeller
authored andcommitted
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 <[email protected]> Acked-by: Helge Deller <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent cf635f8 commit 876b2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/include/asm/uaccess.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct exception_data {
104104
} \
105105
} \
106106
\
107-
(x) = (__typeof__(*(ptr))) __gu_val; \
107+
(x) = (__force __typeof__(*(ptr))) __gu_val; \
108108
__gu_err; \
109109
})
110110

0 commit comments

Comments
 (0)