diff mbox

ARM: add highmem.h to lib/uaccess_with_memcpy.c

Message ID 1311267095-15228-1-git-send-email-paul.gortmaker@windriver.com (mailing list archive)
State New, archived
Headers show

Commit Message

Paul Gortmaker July 21, 2011, 4:51 p.m. UTC
This compile failure was discovered during an allyesconfig:

arch/arm/lib/uaccess_with_memcpy.c: In function 'pin_page_for_write':
arch/arm/lib/uaccess_with_memcpy.c:45: error: implicit declaration of function 'kmap_atomic'
arch/arm/lib/uaccess_with_memcpy.c:48: error: implicit declaration of function 'kunmap_atomic'
make[2]: *** [arch/arm/lib/uaccess_with_memcpy.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
diff mbox

Patch

diff --git a/arch/arm/lib/uaccess_with_memcpy.c b/arch/arm/lib/uaccess_with_memcpy.c
index 8b9b136..66945a6 100644
--- a/arch/arm/lib/uaccess_with_memcpy.c
+++ b/arch/arm/lib/uaccess_with_memcpy.c
@@ -12,6 +12,7 @@ 
 #include <linux/kernel.h>
 #include <linux/ctype.h>
 #include <linux/uaccess.h>
+#include <linux/highmem.h>
 #include <linux/rwsem.h>
 #include <linux/mm.h>
 #include <linux/sched.h>