summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorTejun Heo2010-09-14 15:00:22 +0200
committerMatt Turner2010-09-19 05:06:18 +0200
commitb97f897d60c34adb9a5a37a14033e6a867e86f48 (patch)
tree612ff3d8417a898ffbe03133df12d716a64bf713 /arch/alpha
parentalpha: remove unnecessary cast from void* in assignment. (diff)
downloadkernel-qcow2-linux-b97f897d60c34adb9a5a37a14033e6a867e86f48.tar.gz
kernel-qcow2-linux-b97f897d60c34adb9a5a37a14033e6a867e86f48.tar.xz
kernel-qcow2-linux-b97f897d60c34adb9a5a37a14033e6a867e86f48.zip
alpha: fix build breakage in asm/cacheflush.h
Alpha SMP flush_icache_user_range() is implemented as an inline function inside include/asm/cacheflush.h. It dereferences @current but doesn't include linux/sched.h and thus causes build failure if linux/sched.h wasn't included previously. Fix it by including the needed header file explicitly. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/include/asm/cacheflush.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/cacheflush.h b/arch/alpha/include/asm/cacheflush.h
index 01d71e1c8a9e..012f1243b1c1 100644
--- a/arch/alpha/include/asm/cacheflush.h
+++ b/arch/alpha/include/asm/cacheflush.h
@@ -43,6 +43,8 @@ extern void smp_imb(void);
/* ??? Ought to use this in arch/alpha/kernel/signal.c too. */
#ifndef CONFIG_SMP
+#include <linux/sched.h>
+
extern void __load_new_mm_context(struct mm_struct *);
static inline void
flush_icache_user_range(struct vm_area_struct *vma, struct page *page,