From: Michael S. Tsirkin Date: Tue, 6 Jan 2015 12:37:22 +0000 (+0200) Subject: arm: fix put_user sparse errors X-Git-Tag: fixes-v4.0-rc1~59^2^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8b94dea3867139fe92f03b913e38ca841e390fd;p=pandora-kernel.git arm: 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 --- Reading git-diff-tree failed