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