From 26700159745df7db2bc75e8032d2a36913c37880 Mon Sep 17 00:00:00 2001 From: Amit Pundir Date: Wed, 12 Oct 2016 20:18:18 +0530 Subject: [PATCH] mm: Fix build for hardened usercopy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Include missing linux/sched.h to fix following build failure for ARCH=i386+allmodconfig build. CC mm/usercopy.o mm/usercopy.c: In function ‘check_stack_object’: mm/usercopy.c:40:29: error: implicit declaration of function ‘task_stack_page’ [-Werror=implicit-function-declaration] const void * const stack = task_stack_page(current); ^ scripts/Makefile.build:258: recipe for target 'mm/usercopy.o' failed Fixes: 799abb4f9534 ("mm: Hardened usercopy") Signed-off-by: Amit Pundir --- mm/usercopy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/usercopy.c b/mm/usercopy.c index 089328f2b920..b34996a3860b 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c @@ -15,6 +15,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include +#include #include #include -- 2.34.1