summaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-01-06 14:37:22 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-01-13 15:23:36 +0200
commit9ef8dc161faaa24c58322aa928b3216213621daa (patch)
tree81d63064c315af3aaa2deec13bfcdd0744d63eb2 /arch/sh/include
parent9605ce7e5fe058c94fa354415d122462fb419a00 (diff)
downloadlinux-9ef8dc161faaa24c58322aa928b3216213621daa.tar.bz2
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/sh/include')
0 files changed, 0 insertions, 0 deletions