]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/hugetlb.c: use long vars instead of int in region_count()
authorWang Sheng-Hui <shhuiw@gmail.com>
Wed, 25 Apr 2012 01:03:29 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:17 +0000 (15:17 +1000)
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 <shhuiw@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c

index 2256d865653b75fc78fc14cbb29a81b860ccbca1..dcf4a556247603ea1eb16d59cab9472d21f294e4 100644 (file)
@@ -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;