ipc: Kill bogus dependency on spinlock.h
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 11 Dec 2023 19:00:10 +0000 (14:00 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 21 Dec 2023 00:26:31 +0000 (19:26 -0500)
pruning sched.h dependencies, headers shouldn't pull in more than they
need.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
include/linux/ipc.h
include/linux/sched.h

index e1c9eea6015b56b3a671813d0dfe2bc2f6d1cf61..9b1434247aab71243357eeb9b7f0058f11dd68aa 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef _LINUX_IPC_H
 #define _LINUX_IPC_H
 
-#include <linux/spinlock.h>
+#include <linux/spinlock_types.h>
 #include <linux/uidgid.h>
 #include <linux/rhashtable-types.h>
 #include <uapi/linux/ipc.h>
index 8c230f24688bdf4b322a3e03150f6b9f99099f13..34400b16e57ce5c72fd5b6a50ee8d78220b73aee 100644 (file)
@@ -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 <linux/spinlock.h>
+
 /*
  * In order to reduce various lock holder preemption latencies provide an
  * interface to see if a vCPU is currently running or not.