diff options
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r-- | include/linux/page-flags.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 6081493db68f..3e5a1b189a41 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h | |||
@@ -135,7 +135,7 @@ enum pageflags { | |||
135 | * Macros to create function definitions for page flags | 135 | * Macros to create function definitions for page flags |
136 | */ | 136 | */ |
137 | #define TESTPAGEFLAG(uname, lname) \ | 137 | #define TESTPAGEFLAG(uname, lname) \ |
138 | static inline int Page##uname(struct page *page) \ | 138 | static inline int Page##uname(const struct page *page) \ |
139 | { return test_bit(PG_##lname, &page->flags); } | 139 | { return test_bit(PG_##lname, &page->flags); } |
140 | 140 | ||
141 | #define SETPAGEFLAG(uname, lname) \ | 141 | #define SETPAGEFLAG(uname, lname) \ |
@@ -173,7 +173,7 @@ static inline int __TestClearPage##uname(struct page *page) \ | |||
173 | __SETPAGEFLAG(uname, lname) __CLEARPAGEFLAG(uname, lname) | 173 | __SETPAGEFLAG(uname, lname) __CLEARPAGEFLAG(uname, lname) |
174 | 174 | ||
175 | #define PAGEFLAG_FALSE(uname) \ | 175 | #define PAGEFLAG_FALSE(uname) \ |
176 | static inline int Page##uname(struct page *page) \ | 176 | static inline int Page##uname(const struct page *page) \ |
177 | { return 0; } | 177 | { return 0; } |
178 | 178 | ||
179 | #define TESTSCFLAG(uname, lname) \ | 179 | #define TESTSCFLAG(uname, lname) \ |