Skip to content

Commit 72375a8

Browse files
author
Kent Overstreet
committed
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 <kent.overstreet@linux.dev>
1 parent bc46ef3 commit 72375a8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/linux/ipc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef _LINUX_IPC_H
33
#define _LINUX_IPC_H
44

5-
#include <linux/spinlock.h>
5+
#include <linux/spinlock_types.h>
66
#include <linux/uidgid.h>
77
#include <linux/rhashtable-types.h>
88
#include <uapi/linux/ipc.h>

include/linux/sched.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,6 +2139,8 @@ extern bool sched_task_on_rq(struct task_struct *p);
21392139
extern unsigned long get_wchan(struct task_struct *p);
21402140
extern struct task_struct *cpu_curr_snapshot(int cpu);
21412141

2142+
#include <linux/spinlock.h>
2143+
21422144
/*
21432145
* In order to reduce various lock holder preemption latencies provide an
21442146
* interface to see if a vCPU is currently running or not.

0 commit comments

Comments
 (0)