]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6bc2a1efb0f9999421f97e1d2ac7ce7c50d83d27
tree164ab952496dd7af944150f5ddc77fa9dbc4ba4d
parent7dd2b949d37bbafebd5fd721ee7a7b36f785fbbb
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