aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/page-flags.h2
-rw-r--r--mm/page_alloc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index f2ee9b2332e3..f5a6695d4d21 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -135,7 +135,7 @@ struct page_state {
135 135
136extern void get_page_state(struct page_state *ret); 136extern void get_page_state(struct page_state *ret);
137extern void get_full_page_state(struct page_state *ret); 137extern void get_full_page_state(struct page_state *ret);
138extern unsigned long __read_page_state(unsigned offset); 138extern unsigned long __read_page_state(unsigned long offset);
139extern void __mod_page_state(unsigned long offset, unsigned long delta); 139extern void __mod_page_state(unsigned long offset, unsigned long delta);
140 140
141#define read_page_state(member) \ 141#define read_page_state(member) \
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index c976628f9d95..10446a646374 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1144,7 +1144,7 @@ void get_full_page_state(struct page_state *ret)
1144 __get_page_state(ret, sizeof(*ret) / sizeof(unsigned long)); 1144 __get_page_state(ret, sizeof(*ret) / sizeof(unsigned long));
1145} 1145}
1146 1146
1147unsigned long __read_page_state(unsigned offset) 1147unsigned long __read_page_state(unsigned long offset)
1148{ 1148{
1149 unsigned long ret = 0; 1149 unsigned long ret = 0;
1150 int cpu; 1150 int cpu;