projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89c522c
)
mm/hugetlb.c: use long vars instead of int in region_count()
author
Wang Sheng-Hui
<
[email protected]
>
Tue, 29 May 2012 22:06:17 +0000
(15:06 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 29 May 2012 23:22:18 +0000
(16:22 -0700)
The arguments f & t and fields from & to of struct file_region are
defined as long. So use long instead of int to type the temp vars.
Signed-off-by: Wang Sheng-Hui <
[email protected]
>
Acked-by: David Rientjes <
[email protected]
>
Acked-by: Hillf Danton <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/hugetlb.c
patch
|
blob
|
history
diff --git
a/mm/hugetlb.c
b/mm/hugetlb.c
index 4e28416c47fb5a299ff2bab6ae94afd05e802730..41a647dfb738123023d56bc0174ba2477a0b0ea0 100644
(file)
--- 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;