summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/highmem.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h
index b8334a2df0d8..8800a35efe74 100644
--- a/include/linux/highmem.h
+++ b/include/linux/highmem.h
@@ -18,7 +18,11 @@ unsigned int nr_free_highpages(void);
static inline unsigned int nr_free_highpages(void) { return 0; }
-static inline void *kmap(struct page *page) { return page_address(page); }
+static inline void *kmap(struct page *page)
+{
+ might_sleep();
+ return page_address(page);
+}
#define kunmap(page) do { (void) (page); } while (0)