Commit 58fff517 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

arm64/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

Fix that up using __force.
Signed-off-by: default avatarMichael S. Tsirkin <>
Acked-by: default avatarWill Deacon <>
parent 1ab5786a
......@@ -147,7 +147,7 @@ do { \
default: \
} \
(x) = (__typeof__(*(ptr)))__gu_val; \
(x) = (__force __typeof__(*(ptr)))__gu_val; \
} while (0)
#define __get_user(x, ptr) \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment