diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-01-06 15:37:22 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-01-13 16:23:36 +0300 |
commit | 9ef8dc161faaa24c58322aa928b3216213621daa (patch) | |
tree | 81d63064c315af3aaa2deec13bfcdd0744d63eb2 /arch/avr32 | |
parent | 9605ce7e5fe058c94fa354415d122462fb419a00 (diff) | |
download | linux-9ef8dc161faaa24c58322aa928b3216213621daa.tar.xz |
metag: 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.
This also fixes warnings due to writing a pointer out to
userland.
Note: this does not suppress any useful sparse checks since callers
do a cast (__typeof__(*(ptr))) (x) which in turn forces all the
necessary type checks.
Suggested-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/avr32')
0 files changed, 0 insertions, 0 deletions