From: Andrew Morton /usr/src/devel/arch/x86/mm/gup.c: In function 'gup_pte_range': /usr/src/devel/arch/x86/mm/gup.c:84: error: implicit declaration of function 'kunmap_atomic' /usr/src/devel/arch/x86/mm/gup.c: In function 'get_user_pages_fast': /usr/src/devel/arch/x86/mm/gup.c:230: warning: unused variable 'i' Cc: Andi Kleen Cc: Andy Whitcroft Cc: Badari Pulavarty Cc: Dave Kleikamp Cc: Ingo Molnar Cc: Jens Axboe Cc: Nick Piggin Cc: Thomas Gleixner Cc: Zach Brown Signed-off-by: Andrew Morton --- arch/x86/mm/gup.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN arch/x86/mm/gup.c~x86-lockless-get_user_pages_fast-fix arch/x86/mm/gup.c --- a/arch/x86/mm/gup.c~x86-lockless-get_user_pages_fast-fix +++ a/arch/x86/mm/gup.c @@ -7,6 +7,8 @@ #include #include #include +#include + #include static inline pte_t gup_get_pte(pte_t *ptep) _