diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-12-11 18:56:04 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-01-13 08:23:07 -0500 |
commit | f5e0c47ef3293bef8eab634e5849c2559ed48a39 (patch) | |
tree | 6b6f5be3214e1a653dce8d54a4d67a8defdb90a9 /arch/blackfin | |
parent | 7f0db2bec363bf1a4d6da2572491c634a34dcad8 (diff) |
blackfin/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: Steven Miao <realmz6@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/include/asm/uaccess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/uaccess.h b/arch/blackfin/include/asm/uaccess.h index 57701c3b8a59..2dcc9303355d 100644 --- a/arch/blackfin/include/asm/uaccess.h +++ b/arch/blackfin/include/asm/uaccess.h | |||
@@ -147,7 +147,7 @@ static inline int bad_user_access_length(void) | |||
147 | } \ | 147 | } \ |
148 | } else \ | 148 | } else \ |
149 | _err = -EFAULT; \ | 149 | _err = -EFAULT; \ |
150 | x = (typeof(*(ptr)))_val; \ | 150 | x = (__force typeof(*(ptr)))_val; \ |
151 | _err; \ | 151 | _err; \ |
152 | }) | 152 | }) |
153 | 153 | ||