x86/uaccess: fix sparse errors
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Dec 2014 23:56:04 +0000 (01:56 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 13 Jan 2015 13:22:59 +0000 (15:22 +0200)
commite182c570e9953859aee5cb016583217d9e68ea18
tree164ab952496dd7af944150f5ddc77fa9dbc4ba4d
parent99975cc6ada0d5f2675e83abecae05aba5f437d2
x86/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: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/uaccess.h