From: Arnd Bergmann Date: Tue, 13 Jan 2015 14:23:52 +0000 (+0100) Subject: rocker: fix harmless warning on 32-bit machines X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~234 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adedf37b5908de05256913875f1041e838994b49;p=pandora-kernel.git rocker: fix harmless warning on 32-bit machines The rocker driver tries to assign a pointer to a 64-bit integer and then back to a pointer. This is safe on all architectures, but causes a compiler warning when pointers are shorter than 64-bit: rocker/rocker.c: In function 'rocker_desc_cookie_ptr_get': rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (void *) desc_info->desc->cookie; ^ This adds another cast to uintptr_t to tell the compiler that it's safe. Signed-off-by: Arnd Bergmann Acked-by: Jiri Pirko Signed-off-by: David S. Miller --- Reading git-diff-tree failed