aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/mm.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 35527173cf50..9fac6dd69b11 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -846,11 +846,14 @@ static __always_inline void *lowmem_page_address(const struct page *page)
846#endif 846#endif
847 847
848#if defined(WANT_PAGE_VIRTUAL) 848#if defined(WANT_PAGE_VIRTUAL)
849#define page_address(page) ((page)->virtual) 849static inline void *page_address(const struct page *page)
850#define set_page_address(page, address) \ 850{
851 do { \ 851 return page->virtual;
852 (page)->virtual = (address); \ 852}
853 } while(0) 853static inline void set_page_address(struct page *page, void *address)
854{
855 page->virtual = address;
856}
854#define page_address_init() do { } while(0) 857#define page_address_init() do { } while(0)
855#endif 858#endif
856 859