git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: make some struct page's const
[pandora-kernel.git]
/
mm
/
sparse.c
diff --git
a/mm/sparse.c
b/mm/sparse.c
index
aa64b12
..
858e1df
100644
(file)
--- a/
mm/sparse.c
+++ b/
mm/sparse.c
@@
-40,7
+40,7
@@
static u8 section_to_node_table[NR_MEM_SECTIONS] __cacheline_aligned;
static u16 section_to_node_table[NR_MEM_SECTIONS] __cacheline_aligned;
#endif
-int page_to_nid(struct page *page)
+int page_to_nid(
const
struct page *page)
{
return section_to_node_table[page_to_section(page)];
}