Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

task_work: Remove unnecessary include from posix_timers.h

Break a header file circular dependency by removing the unnecessary
include of task_work.h from posix_timers.h.

sched.h -> posix-timers.h
posix-timers.h -> task_work.h
task_work.h -> sched.h

Add missing includes of task_work.h to:
arch/x86/mm/tlb.c
kernel/time/posix-cpu-timers.c

Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20220309162454.123006-6-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>

+2 -1
+1
arch/x86/mm/tlb.c
··· 9 9 #include <linux/cpu.h> 10 10 #include <linux/debugfs.h> 11 11 #include <linux/sched/smt.h> 12 + #include <linux/task_work.h> 12 13 13 14 #include <asm/tlbflush.h> 14 15 #include <asm/mmu_context.h>
-1
include/linux/posix-timers.h
··· 6 6 #include <linux/list.h> 7 7 #include <linux/alarmtimer.h> 8 8 #include <linux/timerqueue.h> 9 - #include <linux/task_work.h> 10 9 11 10 struct kernel_siginfo; 12 11 struct task_struct;
+1
kernel/time/posix-cpu-timers.c
··· 15 15 #include <linux/workqueue.h> 16 16 #include <linux/compat.h> 17 17 #include <linux/sched/deadline.h> 18 + #include <linux/task_work.h> 18 19 19 20 #include "posix-timers.h" 20 21