task_work: Remove unnecessary include from posix_timers.h

Conflicts: kernel/sched/fair.c - Commit
	325ea10c08 ("sched/headers: Simplify and clean up header usage in the scheduler")
	removed the include of linux/task_work.h. It was added in again in
	merge commit
	1930a6e739c4 ("Merge tag 'ptrace-cleanups-for-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace")
	This is the first commit to stumble upon its absence, so add it back
	in here.

Bugzilla: https://bugzilla.redhat.com/2120352

commit 8ca07e17c9dd4c4afcb4a3f2ea8f0a0d41c0f982
Author: Eric W. Biederman <ebiederm@xmission.com>
Date:   Fri Jan 28 13:55:47 2022 -0600

    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.co
m
    Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
This commit is contained in:
Chris von Recklinghausen 2022-10-12 07:09:03 -04:00
parent f64a4f551f
commit 712a442ea9
4 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include <linux/cpu.h>
#include <linux/debugfs.h>
#include <linux/sched/smt.h>
#include <linux/task_work.h>
#include <asm/tlbflush.h>
#include <asm/mmu_context.h>

View File

@ -6,7 +6,6 @@
#include <linux/list.h>
#include <linux/alarmtimer.h>
#include <linux/timerqueue.h>
#include <linux/task_work.h>
struct kernel_siginfo;
struct task_struct;

View File

@ -45,6 +45,7 @@
#include <linux/profile.h>
#include <linux/psi.h>
#include <linux/ratelimit.h>
#include <linux/task_work.h>
#include <asm/switch_to.h>

View File

@ -15,6 +15,7 @@
#include <linux/workqueue.h>
#include <linux/compat.h>
#include <linux/sched/deadline.h>
#include <linux/task_work.h>
#include "posix-timers.h"