summaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-01-06 17:44:10 +0200
committerHelge Deller <deller@gmx.de>2015-02-16 22:41:27 +0100
commit876b2a008371663cb66637fde5274f67afef1780 (patch)
treeff99b630951ce9a127d6104e24ffc678b27b951f /arch/parisc
parentcf635f8dfdbfc1bd41332045d51bd2b7144ae01a (diff)
downloadlinux-876b2a008371663cb66637fde5274f67afef1780.tar.gz
linux-876b2a008371663cb66637fde5274f67afef1780.tar.bz2
linux-876b2a008371663cb66637fde5274f67afef1780.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> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-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; \
})