From: Kent Overstreet Date: Mon, 11 Dec 2023 19:00:10 +0000 (-0500) Subject: ipc: Kill bogus dependency on spinlock.h X-Git-Tag: v6.8-rc1~136^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72375a8864ebc0a20ca4a35f382441b01a0b85b9;p=thirdparty%2Fkernel%2Flinux.git ipc: Kill bogus dependency on spinlock.h pruning sched.h dependencies, headers shouldn't pull in more than they need. Signed-off-by: Kent Overstreet --- diff --git a/include/linux/ipc.h b/include/linux/ipc.h index e1c9eea6015b5..9b1434247aab7 100644 --- a/include/linux/ipc.h +++ b/include/linux/ipc.h @@ -2,7 +2,7 @@ #ifndef _LINUX_IPC_H #define _LINUX_IPC_H -#include +#include #include #include #include diff --git a/include/linux/sched.h b/include/linux/sched.h index 8c230f24688bd..34400b16e57ce 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2139,6 +2139,8 @@ extern bool sched_task_on_rq(struct task_struct *p); extern unsigned long get_wchan(struct task_struct *p); extern struct task_struct *cpu_curr_snapshot(int cpu); +#include + /* * In order to reduce various lock holder preemption latencies provide an * interface to see if a vCPU is currently running or not.