projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92acb6c
)
ia64/uaccess: fix sparse errors
author
Michael S. Tsirkin
<mst@redhat.com>
Thu, 11 Dec 2014 23:56:04 +0000
(
01:56
+0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 13 Jan 2015 13:23:11 +0000
(15:23 +0200)
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>
arch/ia64/include/asm/uaccess.h
patch
|
blob
|
history
diff --git
a/arch/ia64/include/asm/uaccess.h
b/arch/ia64/include/asm/uaccess.h
index 103bedc59644a65a90d76d51b85c586478ef0e01..967c312a6bafe96d4ab0e6c37865be7ea51482aa 100644
(file)
--- a/
arch/ia64/include/asm/uaccess.h
+++ b/
arch/ia64/include/asm/uaccess.h
@@
-197,7
+197,7
@@
extern void __get_user_unknown (void);
case 8: __get_user_size(__gu_val, __gu_ptr, 8, __gu_err); break; \
default: __get_user_unknown(); break; \
} \
- (x) = (__
typeof__(*(__gu_ptr))) __gu_val;
\
+ (x) = (__
force __typeof__(*(__gu_ptr))) __gu_val;
\
__gu_err; \
})