]> git.baikalelectronics.ru Git - kernel.git/commit
nios2/uaccess: fix sparse errors
authorLey Foon Tan <lftan@altera.com>
Wed, 17 Dec 2014 05:53:41 +0000 (13:53 +0800)
committerLey Foon Tan <lftan@altera.com>
Wed, 17 Dec 2014 05:53:41 +0000 (13:53 +0800)
commitfd2662c79eccbd0828d911746e5e70410d9dc89a
tree0069531d60de4d0dbfbd4d121f10c998cd4f6023
parent64c426d661b28f55f99be91cfbd7d1986e0834cf
nios2/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.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/include/asm/uaccess.h