From: Thierry Reding Date: Mon, 28 Jul 2014 15:01:49 +0000 (+0200) Subject: [IA64] sn: Do not needlessly convert between pointers and integers X-Git-Tag: omap-for-v3.17/fixes-against-rc2~182^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b15075c2c3662dbe1ac41404c6a2013b24efa1d;p=pandora-kernel.git [IA64] sn: Do not needlessly convert between pointers and integers The nasid_to_try variable is an array of integers, so plain integers can be used when assigning values to the elements rather than casting a NULL pointer to an integer, which results in the following warning from GCC: arch/ia64/sn/kernel/bte.c:117:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nasid_to_try[1] = (int)NULL; ^ arch/ia64/sn/kernel/bte.c:125:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] nasid_to_try[1] = (int)NULL; ^ Replace (int)NULL with a simple 0 to silence these warnings. Signed-off-by: Thierry Reding Signed-off-by: Tony Luck --- Reading git-diff-tree failed