summaryrefslogtreecommitdiff
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-07-25 17:11:51 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 20:57:07 -0700
commit33dd4e0ec91138c3d80e790c08a3db47426c81f2 (patch)
tree5b244874a004cc8a34033846f4e504c9306bf025 /mm/sparse.c
parentee8f248d266ec6966c0ce6b7dec24de43dcc1b58 (diff)
downloadlinux-3.10-33dd4e0ec91138c3d80e790c08a3db47426c81f2.tar.gz
linux-3.10-33dd4e0ec91138c3d80e790c08a3db47426c81f2.tar.bz2
linux-3.10-33dd4e0ec91138c3d80e790c08a3db47426c81f2.zip
mm: make some struct page's const
These uses are read-only and in a subsequent patch I have a const struct page in my hand... [akpm@linux-foundation.org: fix warnings in lowmem_page_address()] Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Rik van Riel <riel@redhat.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Michel Lespinasse <walken@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/sparse.c')
-rw-r--r--mm/sparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/sparse.c b/mm/sparse.c
index aa64b12831a..858e1dff9b2 100644
--- 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)];
}