aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/uaccess.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-12-12 01:56:04 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-01-13 15:23:19 +0200
commit079f0f269f2a64080d7fa45cf686b02662ff8e36 (patch)
tree8277afda5a746182cc4a85ed70824b2d67a45a5b /arch/parisc/include/asm/uaccess.h
parentopenrisc/uaccess: fix sparse errors (diff)
downloadlinux-dev-079f0f269f2a64080d7fa45cf686b02662ff8e36.tar.xz
linux-dev-079f0f269f2a64080d7fa45cf686b02662ff8e36.zip
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>
Diffstat (limited to '')
-rw-r--r--arch/parisc/include/asm/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h
index a5cb070b54bf..6c79311acdaf 100644
--- a/arch/parisc/include/asm/uaccess.h
+++ b/arch/parisc/include/asm/uaccess.h
@@ -104,7 +104,7 @@ struct exception_data {
} \
} \
\
- (x) = (__typeof__(*(ptr))) __gu_val; \
+ (x) = (__force __typeof__(*(ptr))) __gu_val; \
__gu_err; \
})