diff options
Diffstat (limited to 'include/linux/highmem.h')
-rw-r--r-- | include/linux/highmem.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 774fa47b3b5b..ef788b5b4a35 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h | |||
@@ -39,10 +39,17 @@ extern unsigned long totalhigh_pages; | |||
39 | 39 | ||
40 | void kmap_flush_unused(void); | 40 | void kmap_flush_unused(void); |
41 | 41 | ||
42 | struct page *kmap_to_page(void *addr); | ||
43 | |||
42 | #else /* CONFIG_HIGHMEM */ | 44 | #else /* CONFIG_HIGHMEM */ |
43 | 45 | ||
44 | static inline unsigned int nr_free_highpages(void) { return 0; } | 46 | static inline unsigned int nr_free_highpages(void) { return 0; } |
45 | 47 | ||
48 | static inline struct page *kmap_to_page(void *addr) | ||
49 | { | ||
50 | return virt_to_page(addr); | ||
51 | } | ||
52 | |||
46 | #define totalhigh_pages 0UL | 53 | #define totalhigh_pages 0UL |
47 | 54 | ||
48 | #ifndef ARCH_HAS_KMAP | 55 | #ifndef ARCH_HAS_KMAP |