Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-17 Thread Arnd Bergmann
On Wednesday 17 December 2014 11:52:36 Benjamin Herrenschmidt wrote: On Tue, 2014-12-16 at 18:47 +0200, Michael S. Tsirkin wrote: On Sun, Dec 14, 2014 at 06:52:51PM +0200, Michael S. Tsirkin wrote: virtio wants to read bitwise types from userspace using get_user. At the moment this

Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-17 Thread Benjamin Herrenschmidt
On Wed, 2014-12-17 at 11:53 +0100, Arnd Bergmann wrote: On Wednesday 17 December 2014 11:52:36 Benjamin Herrenschmidt wrote: On Tue, 2014-12-16 at 18:47 +0200, Michael S. Tsirkin wrote: On Sun, Dec 14, 2014 at 06:52:51PM +0200, Michael S. Tsirkin wrote: virtio wants to read bitwise types

Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-16 Thread Michael S. Tsirkin
On Sun, Dec 14, 2014 at 06:52:51PM +0200, Michael S. Tsirkin wrote: 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

Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-16 Thread Michael Ellerman
On Tue, 2014-12-16 at 18:47 +0200, Michael S. Tsirkin wrote: On Sun, Dec 14, 2014 at 06:52:51PM +0200, Michael S. Tsirkin wrote: 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.

Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-16 Thread Benjamin Herrenschmidt
On Tue, 2014-12-16 at 18:47 +0200, Michael S. Tsirkin wrote: On Sun, Dec 14, 2014 at 06:52:51PM +0200, Michael S. Tsirkin wrote: 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.

[PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
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 m...@redhat.com --- arch/powerpc/include/asm/uaccess.h | 6 +++--- 1 file

Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-14 Thread Benjamin Herrenschmidt
On Sun, 2014-12-14 at 18:52 +0200, Michael S. Tsirkin wrote: 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. You mean bitfields ? Argh ... we should just

Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-14 Thread Benjamin Herrenschmidt
On Mon, 2014-12-15 at 11:05 +1100, Benjamin Herrenschmidt wrote: On Sun, 2014-12-14 at 18:52 +0200, Michael S. Tsirkin wrote: 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