linux/arch/metag
Michael S. Tsirkin 9ef8dc161f 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>
2015-01-13 15:23:36 +02:00
..
boot metag: tz1090: instantiate gpio-tz1090-pdc 2013-07-22 10:55:31 +01:00
configs
include metag: fix put_user sparse errors 2015-01-13 15:23:36 +02:00
kernel metag: Replace __get_cpu_var uses for address calculation 2014-08-26 13:45:47 -04:00
lib
mm metag: hugetlbpage: Remove null pointer checks that could never happen 2014-06-16 16:22:44 +01:00
oprofile
tbx metag: handle low level kicks directly 2013-11-06 10:40:02 +00:00
Kconfig metag: ftrace: Remove check of obsolete variable function_trace_stop 2014-07-18 13:58:09 -04:00
Kconfig.debug consolidate per-arch stack overflow debugging options 2013-07-04 11:25:39 -07:00
Kconfig.soc metag: tz1090: select and instantiate gpio-tz1090 2013-07-22 10:55:31 +01:00
Makefile