diff options
Diffstat (limited to 'include/linux/highmem.h')
-rw-r--r-- | include/linux/highmem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 3d8768b619e9..ea5780b518ef 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h | |||
@@ -96,6 +96,8 @@ static inline void memclear_highpage_flush(struct page *page, unsigned int offse | |||
96 | kunmap_atomic(kaddr, KM_USER0); | 96 | kunmap_atomic(kaddr, KM_USER0); |
97 | } | 97 | } |
98 | 98 | ||
99 | #ifndef __HAVE_ARCH_COPY_USER_HIGHPAGE | ||
100 | |||
99 | static inline void copy_user_highpage(struct page *to, struct page *from, unsigned long vaddr) | 101 | static inline void copy_user_highpage(struct page *to, struct page *from, unsigned long vaddr) |
100 | { | 102 | { |
101 | char *vfrom, *vto; | 103 | char *vfrom, *vto; |
@@ -109,6 +111,8 @@ static inline void copy_user_highpage(struct page *to, struct page *from, unsign | |||
109 | smp_wmb(); | 111 | smp_wmb(); |
110 | } | 112 | } |
111 | 113 | ||
114 | #endif | ||
115 | |||
112 | static inline void copy_highpage(struct page *to, struct page *from) | 116 | static inline void copy_highpage(struct page *to, struct page *from) |
113 | { | 117 | { |
114 | char *vfrom, *vto; | 118 | char *vfrom, *vto; |