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 <[email protected]>
The generic version is both easier to support and more correct.
Signed-off-by: Jonas Bonn <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
As per commits 2922585b93 ("lib: Sparc's strncpy_from_user is generic
enough, move under lib/") and 92ae03f2ef ("x86: merge 32/64-bit
versions of 'strncpy_from_user()' and speed it up"), and corresponding
discussion on linux-arch.
Signed-off-by: Jonas Bonn <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/openrisc/include/asm/uaccess.h: included 'linux/thread_info.h'
twice, remove the duplicate.
Signed-off-by: Danny Kukawka <[email protected]>
Signed-off-by: Jonas Bonn <[email protected]>