]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf857ca958b83d05f568b305ae338e787e42af61
tree80fc76e45b361fe5021861bc8e2d57a46048c0c0
parent82c8748a075bf22ddd6ab628c718fd25df43c7af
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