]> 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)
commita76227e347ebac68317bfb5a145209870f17bf7c
tree0069531d60de4d0dbfbd4d121f10c998cd4f6023
parent14b52f998384df798069071b3ef108592adf621b
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