From f6eb2bcd667d77f94470c49aa0646b1382e9e509 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 18 Jan 2004 18:16:01 -0800 Subject: [PATCH] [PATCH] ppc64: fix sign extension bug in NUMA code From: Anton Blanchard The ppc64 NUMA code has a sign extension problem. We would sign extend tmp1 when assigning it to start. Fix this by making tmp1 unsigned. --- arch/ppc64/mm/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ppc64/mm/numa.c b/arch/ppc64/mm/numa.c index f4a67cfed9f85..cb6f007c5ed4a 100644 --- a/arch/ppc64/mm/numa.c +++ b/arch/ppc64/mm/numa.c @@ -107,7 +107,7 @@ static int __init parse_numa_properties(void) } for (; memory; memory = of_find_node_by_type(memory, "memory")) { - int *tmp1, *tmp2; + unsigned int *tmp1, *tmp2; unsigned long i; unsigned long start = 0; unsigned long size = 0; -- 2.53.0