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)
commitf1f2eac9124bf0dc82b652871f9a596bce2d3e10
tree0069531d60de4d0dbfbd4d121f10c998cd4f6023
parentd1e4ef04244fc67f4f2ee001a84a6562f569f437
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