From b081bb0d8a4c1bba0269a97933d9fec2a3d10a97 Mon Sep 17 00:00:00 2001 From: Wang Sheng-Hui Date: Fri, 13 Apr 2012 08:51:57 +1000 Subject: [PATCH] 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 --- mm/hugetlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 1b289ab85e8a..4314a8889bc9 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; -- 2.39.5