Commit b97f897d60c34adb9a5a37a14033e6a867e86f48
Committed by
Matt Turner
1 parent
af96f8a340
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
arch/alpha/include/asm/cacheflush.h
... | ... | @@ -43,6 +43,8 @@ |
43 | 43 | /* ??? Ought to use this in arch/alpha/kernel/signal.c too. */ |
44 | 44 | |
45 | 45 | #ifndef CONFIG_SMP |
46 | +#include <linux/sched.h> | |
47 | + | |
46 | 48 | extern void __load_new_mm_context(struct mm_struct *); |
47 | 49 | static inline void |
48 | 50 | flush_icache_user_range(struct vm_area_struct *vma, struct page *page, |