alistair23-linux/arch/sh
Michael S. Tsirkin 66959ed0e4 sh: 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:38 +02:00
..
boards [media] platform: Make use of media_bus_format enum 2014-11-14 17:54:08 -02:00
boot
cchips
configs PM: Eliminate CONFIG_PM_RUNTIME 2014-12-19 22:55:06 +01:00
drivers Merge branch 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma 2014-08-11 07:14:01 -07:00
include sh: fix put_user sparse errors 2015-01-13 15:23:38 +02:00
kernel cpuidle: Invert CPUIDLE_FLAG_TIME_VALID logic 2014-11-12 21:17:27 +01:00
lib sh: ftrace: Remove check of obsolete variable function_trace_stop 2014-07-18 13:57:04 -04:00
lib64
math-emu sh: remove unused do_fpu_error 2014-04-03 16:20:52 -07:00
mm sh: off by one BUG_ON() in setup_bootmem_node() 2014-12-10 17:41:02 -08:00
oprofile
tools
Kconfig PM: Eliminate CONFIG_PM_RUNTIME 2014-12-19 22:55:06 +01:00
Kconfig.cpu
Kconfig.debug
Makefile sh: also try passing -m4-nofpu for SH2A builds 2014-07-23 15:10:54 -07:00