]> Pileus Git - ~andy/linux/blobdiff - mm/sparse.c
atomic: use <linux/atomic.h>
[~andy/linux] / mm / sparse.c
index aa64b12831a24b8c831878b1ea8b66c2553a619e..858e1dff9b2af89b0c98203cd3e9099d8feffbbd 100644 (file)
@@ -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)];
 }