tile: fix put_user sparse errors
authorChris Metcalf <cmetcalf@ezchip.com>
Tue, 13 Jan 2015 19:39:05 +0000 (14:39 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Tue, 13 Jan 2015 23:44:17 +0000 (18:44 -0500)
commitf3c927125fa49a42d596434d1ed454195c0d4530
tree80fc76e45b361fe5021861bc8e2d57a46048c0c0
parente9118a4914e47e915952842828401779f09cecb8
tile: fix put_user sparse errors

Use x86's __inttype macro instead of using the typeof(x-x) trick to
generate a suitable integer size type.  This avoids a sparse warning
when examining the x-x type with a bitwise type.

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/include/asm/uaccess.h