mm: Fix build for hardened usercopy
authorAmit Pundir <amit.pundir@linaro.org>
Wed, 12 Oct 2016 14:48:18 +0000 (20:18 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 12 Oct 2016 17:05:30 +0000 (22:35 +0530)
commit26700159745df7db2bc75e8032d2a36913c37880
tree1ad90bd1a4d3c0498382978d46b4e4da58189b54
parent12dd1aad02fab89b2504be556df26049f5718e81
mm: Fix build for hardened usercopy

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 <amit.pundir@linaro.org>
mm/usercopy.c