Michael S. Tsirkin
e8b94dea38
arm: fix put_user sparse errors
...
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);
is safe, but currently triggers a sparse warning.
Fix that up using __force.
Note: this does not suppress any useful sparse checks since caller
assigns x to typeof(*p), which in turn forces all the necessary type
checks.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-01-13 15:23:30 +02:00
..
2014-08-02 08:51:47 +01:00
2014-11-07 15:19:33 -08:00
2014-11-21 09:34:29 -07:00
2014-12-04 12:41:54 +00:00
2014-12-04 23:30:26 -08:00
2014-07-18 12:29:04 +01:00
2014-10-03 06:06:23 +02:00
2014-12-11 21:15:06 -05:00
2014-10-16 14:38:54 -07:00
2014-06-02 09:20:18 +01:00
2014-11-12 21:17:27 +01:00
2014-08-27 15:40:45 +01:00
2014-12-04 12:41:50 +00:00
2014-12-16 14:53:01 -08:00
2014-08-27 15:40:11 +01:00
2014-07-18 12:29:04 +01:00
2014-10-21 00:06:35 +09:00
2014-10-16 14:38:53 -07:00
2014-09-26 14:40:03 +01:00
2014-06-07 11:44:39 -07:00
2014-05-30 01:12:30 +01:00
2014-07-18 12:29:37 +01:00
2014-06-30 21:37:39 +02:00
2014-11-27 16:15:33 +00:00
2014-11-10 15:59:23 +01:00
2014-09-13 18:38:39 +02:00
2014-12-10 15:17:46 -05:00
2014-07-11 04:57:38 -07:00
2014-12-13 14:15:26 +01:00
2014-12-13 14:15:26 +01:00
2014-12-13 14:15:27 +01:00
2014-12-03 16:00:06 +00:00
2014-07-18 12:29:35 +01:00
2014-06-01 01:17:12 +01:00
2014-11-10 15:59:23 +01:00
2014-05-30 00:50:35 +01:00
2014-11-13 23:58:06 +00:00
2014-10-30 12:16:58 +00:00
2014-12-03 15:57:45 +00:00
2014-12-03 15:57:45 +00:00
2014-10-09 22:26:00 -04:00
2014-12-03 15:57:45 +00:00
2014-10-09 22:26:01 -04:00
2014-12-03 16:00:06 +00:00
2014-10-30 12:17:01 +00:00
2014-07-17 12:32:47 +02:00
2014-11-13 23:58:07 +00:00
2014-06-01 01:17:12 +01:00
2014-08-27 15:40:45 +01:00
2014-07-18 12:29:02 +01:00
2014-08-27 15:44:13 +01:00
2014-12-18 09:54:40 +01:00
2014-07-18 12:29:11 +01:00
2014-09-26 14:39:53 +01:00
2014-12-05 16:30:47 +00:00
2014-10-09 22:26:01 -04:00
2014-09-30 16:55:23 +01:00
2015-01-13 15:23:30 +02:00
2014-08-09 14:07:53 +01:00
2014-11-21 15:24:43 +00:00