diff options
author | Michael S. Tsirkin <[email protected]> | 2015-01-06 14:37:22 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2015-01-13 15:23:36 +0200 |
commit | 9ef8dc161faaa24c58322aa928b3216213621daa (patch) | |
tree | 81d63064c315af3aaa2deec13bfcdd0744d63eb2 /fs/jbd/commit.c | |
parent | 9605ce7e5fe058c94fa354415d122462fb419a00 (diff) |
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 <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: James Hogan <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions