Skip to content

Commit b69339b

Browse files
committed
sched/headers: Prepare to remove spurious <linux/sched.h> inclusion dependencies
In the following patches we are going to remove various headers from sched.h and other headers that sched.h includes. To make those patches build cleanly prepare the scene by adding dependencies to various files that learned to rely on those to-be-removed dependencies. These changes all make sense standalone: they add a header for a data type that a particular .c or .h file is using. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 50d3439 commit b69339b

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/misc/vmw_vmci/vmci_resource.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/hash.h>
1818
#include <linux/types.h>
1919
#include <linux/rculist.h>
20+
#include <linux/completion.h>
2021

2122
#include "vmci_resource.h"
2223
#include "vmci_driver.h"

‎include/linux/sched.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ struct sched_param {
1818
#include <linux/types.h>
1919
#include <linux/timex.h>
2020
#include <linux/jiffies.h>
21+
#include <linux/mutex.h>
2122
#include <linux/plist.h>
2223
#include <linux/rbtree.h>
2324
#include <linux/thread_info.h>

‎include/sound/control.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*
2323
*/
2424

25+
#include <linux/wait.h>
2526
#include <sound/asound.h>
2627

2728
#define snd_kcontrol_chip(kcontrol) ((kcontrol)->private_data)

‎include/target/target_core_base.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <linux/dma-direction.h> /* enum dma_data_direction */
66
#include <linux/percpu_ida.h> /* struct percpu_ida */
77
#include <linux/semaphore.h> /* struct semaphore */
8+
#include <linux/completion.h>
89

910
#define TARGET_CORE_VERSION "v5.0"
1011

0 commit comments

Comments
 (0)