x86/mm: Clean up types in xlate_dev_mem_ptr()
authorIngo Molnar <mingo@kernel.org>
Fri, 23 Nov 2012 18:19:07 +0000 (19:19 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 20 Apr 2015 06:41:37 +0000 (08:41 +0200)
commit94d4b4765b7ddb8478b0d57663cf7a08e2263bbf
tree24623ba9c1edeb13d491b036ec8c2c5f7557f953
parenta6dfa128ce5c414ab46b1d690f7a1b8decb8526d
x86/mm: Clean up types in xlate_dev_mem_ptr()

Pavel Machek reported the following compiler warning on
x86/32 CONFIG_HIGHMEM64G=y builds:

  arch/x86/mm/ioremap.c:344:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Clean up the types in this function by using a single natural type for
internal calculations (unsigned long), to make it more apparent what's
happening, and also to remove fragile casts.

Reported-by: Pavel Machek <pavel@ucw.cz>
Cc: jgross@suse.com
Cc: roland@purestorage.com
Link: http://lkml.kernel.org/r/20150416080440.GA507@amd
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/ioremap.c