Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

plist: Split out plist_types.h

Trimming down sched.h dependencies: we don't want to include more than
the base types.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+24 -12
+1 -11
include/linux/plist.h
··· 75 75 76 76 #include <linux/container_of.h> 77 77 #include <linux/list.h> 78 - #include <linux/types.h> 78 + #include <linux/plist_types.h> 79 79 80 80 #include <asm/bug.h> 81 - 82 - struct plist_head { 83 - struct list_head node_list; 84 - }; 85 - 86 - struct plist_node { 87 - int prio; 88 - struct list_head prio_list; 89 - struct list_head node_list; 90 - }; 91 81 92 82 /** 93 83 * PLIST_HEAD_INIT - static struct plist_head initializer
+17
include/linux/plist_types.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 + #ifndef _LINUX_PLIST_TYPES_H 3 + #define _LINUX_PLIST_TYPES_H 4 + 5 + #include <linux/types.h> 6 + 7 + struct plist_head { 8 + struct list_head node_list; 9 + }; 10 + 11 + struct plist_node { 12 + int prio; 13 + struct list_head prio_list; 14 + struct list_head node_list; 15 + }; 16 + 17 + #endif /* _LINUX_PLIST_TYPES_H */
+1 -1
include/linux/sched.h
··· 16 16 #include <linux/shm.h> 17 17 #include <linux/kmsan_types.h> 18 18 #include <linux/mutex_types.h> 19 - #include <linux/plist.h> 19 + #include <linux/plist_types.h> 20 20 #include <linux/hrtimer_types.h> 21 21 #include <linux/irqflags.h> 22 22 #include <linux/seccomp.h>
+1
init/init_task.c
··· 12 12 #include <linux/audit.h> 13 13 #include <linux/numa.h> 14 14 #include <linux/scs.h> 15 + #include <linux/plist.h> 15 16 16 17 #include <linux/uaccess.h> 17 18
+1
kernel/futex/core.c
··· 34 34 #include <linux/compat.h> 35 35 #include <linux/jhash.h> 36 36 #include <linux/pagemap.h> 37 + #include <linux/plist.h> 37 38 #include <linux/memblock.h> 38 39 #include <linux/fault-inject.h> 39 40 #include <linux/slab.h>
+1
kernel/futex/requeue.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 2 3 + #include <linux/plist.h> 3 4 #include <linux/sched/signal.h> 4 5 5 6 #include "futex.h"
+1
kernel/futex/waitwake.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 2 3 + #include <linux/plist.h> 3 4 #include <linux/sched/task.h> 4 5 #include <linux/sched/signal.h> 5 6 #include <linux/freezer.h>
+1
mm/swapfile.c
··· 42 42 #include <linux/completion.h> 43 43 #include <linux/suspend.h> 44 44 #include <linux/zswap.h> 45 + #include <linux/plist.h> 45 46 46 47 #include <asm/tlbflush.h> 47 48 #include <linux/swapops.h>