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:
b857bd2
)
sparc64: Fix array size reported by vmemmap_populate()
author
Ben Hutchings
<
[email protected]
>
Sat, 3 Apr 2010 20:58:45 +0000
(13:58 -0700)
committer
David S. Miller
<
[email protected]
>
Sat, 3 Apr 2010 20:58:45 +0000
(13:58 -0700)
vmemmap_populate() attempts to report the used index and total size of
vmemmap_table, but it wrongly shifts the total size so that it is
always shown as 0.
Signed-off-by: Ben Hutchings <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
arch/sparc/mm/init_64.c
patch
|
blob
|
history
diff --git
a/arch/sparc/mm/init_64.c
b/arch/sparc/mm/init_64.c
index 9245a822a2f17cf8a20fc9edd12f217156f973ac..20beb806a5370b728ea4154a6cc8cfaa6b1b38fd 100644
(file)
--- a/
arch/sparc/mm/init_64.c
+++ b/
arch/sparc/mm/init_64.c
@@
-2117,7
+2117,7
@@
int __meminit vmemmap_populate(struct page *start, unsigned long nr, int node)
"node=%d entry=%lu/%lu\n", start, block, nr,
node,
addr >> VMEMMAP_CHUNK_SHIFT,
- VMEMMAP_SIZE
>> VMEMMAP_CHUNK_SHIFT
);
+ VMEMMAP_SIZE);
}
}
return 0;