From: Steven J. Hill Date: Thu, 13 Nov 2014 15:52:00 +0000 (-0600) Subject: MIPS: Fix address type used for early memory detection. X-Git-Tag: v3.18-rc7~12^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b4da18b3714a35c1123522810cc5ec0cd2ee4101;p=~emulex%2Finfiniband.git MIPS: Fix address type used for early memory detection. In 'early_parse_mem' the data type used for the start and size of a memory region specified on the command line is incorrect. If 64-bit addressing is used, the value gets truncated. Signed-off-by: Steven J. Hill Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/8456/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 083c3c28957..f3b635f86c3 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -493,7 +493,7 @@ static int usermem __initdata; static int __init early_parse_mem(char *p) { - unsigned long start, size; + phys_t start, size; /* * If a user specifies memory size, we