From: Wang Sheng-Hui Date: Wed, 25 Apr 2012 01:03:29 +0000 (+1000) Subject: mm/hugetlb.c: use long vars instead of int in region_count() X-Git-Tag: next-20120430~2^2~160 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6fa63f7f717de2eb43dd114c4f7f77f84340c5eb;p=karo-tx-linux.git mm/hugetlb.c: use long vars instead of int in region_count() args f & t and fields from & to of struct file_region are defined as long. Use long instead of int to type the temp vars. Signed-off-by: Wang Sheng-Hui Acked-by: David Rientjes Acked-by: Hillf Danton Signed-off-by: Andrew Morton --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 2256d865653b..dcf4a5562476 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -273,8 +273,8 @@ static long region_count(struct list_head *head, long f, long t) /* Locate each segment we overlap with, and count that overlap. */ list_for_each_entry(rg, head, link) { - int seg_from; - int seg_to; + long seg_from; + long seg_to; if (rg->to <= f) continue;