memtest: use phys_addr_t for physical addresses
authorVladimir Murzin <[email protected]>
Tue, 14 Apr 2015 22:48:30 +0000 (15:48 -0700)
committerLinus Torvalds <[email protected]>
Tue, 14 Apr 2015 23:49:06 +0000 (16:49 -0700)
commit7f70baeeb9e2d2b2a37a4bd3727d709547c4ae41
treebd0dbb537180d25d31e1cd7eaf05b28e0597bd5e
parent4a20799d11f64e6b8725cacc7619b1ae1dbf9acd
memtest: use phys_addr_t for physical addresses

Since memtest might be used by other architectures pass input parameters
as phys_addr_t instead of long to prevent overflow.

Signed-off-by: Vladimir Murzin <[email protected]>
Acked-by: Will Deacon <[email protected]>
Tested-by: Mark Rutland <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Russell King <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memblock.h
mm/memtest.c