Re: [PATCH v2 09/40] metag/uaccess: fix sparse errors

2015-01-07 Thread Michael S. Tsirkin
On Wed, Jan 07, 2015 at 09:47:24AM +, James Hogan wrote: > Hi Machael, > > On 06/01/15 15:43, 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 v2 20/40] metag: fix put_user sparse errors

2015-01-07 Thread James Hogan
On 06/01/15 15:44, Michael S. Tsirkin wrote: > virtio wants to write bitwise types to userspace using put_user. > At the moment this triggers sparse errors, since the value is passed > through an integer. > > For example: > > __le32 __user *p; > __le32 x; > put_user(x, p); > >

Re: [PATCH v2 09/40] metag/uaccess: fix sparse errors

2015-01-07 Thread James Hogan
Hi Machael, On 06/01/15 15:43, 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 > --- >