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.

pid: Split out pid_types.h

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

Cc: Kees Cook <keescook@chromium.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Will Drewry <wad@chromium.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+22 -14
+1
drivers/target/target_core_xcopy.c
··· 15 15 #include <linux/slab.h> 16 16 #include <linux/spinlock.h> 17 17 #include <linux/list.h> 18 + #include <linux/rculist.h> 18 19 #include <linux/configfs.h> 19 20 #include <linux/ratelimit.h> 20 21 #include <scsi/scsi_proto.h>
+2 -13
include/linux/pid.h
··· 2 2 #ifndef _LINUX_PID_H 3 3 #define _LINUX_PID_H 4 4 5 + #include <linux/pid_types.h> 5 6 #include <linux/rculist.h> 6 - #include <linux/wait.h> 7 7 #include <linux/refcount.h> 8 - 9 - enum pid_type 10 - { 11 - PIDTYPE_PID, 12 - PIDTYPE_TGID, 13 - PIDTYPE_PGID, 14 - PIDTYPE_SID, 15 - PIDTYPE_MAX, 16 - }; 8 + #include <linux/wait.h> 17 9 18 10 /* 19 11 * What is struct pid? ··· 101 109 extern void exchange_tids(struct task_struct *task, struct task_struct *old); 102 110 extern void transfer_pid(struct task_struct *old, struct task_struct *new, 103 111 enum pid_type); 104 - 105 - struct pid_namespace; 106 - extern struct pid_namespace init_pid_ns; 107 112 108 113 extern int pid_max; 109 114 extern int pid_max_min, pid_max_max;
+16
include/linux/pid_types.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef _LINUX_PID_TYPES_H 3 + #define _LINUX_PID_TYPES_H 4 + 5 + enum pid_type { 6 + PIDTYPE_PID, 7 + PIDTYPE_TGID, 8 + PIDTYPE_PGID, 9 + PIDTYPE_SID, 10 + PIDTYPE_MAX, 11 + }; 12 + 13 + struct pid_namespace; 14 + extern struct pid_namespace init_pid_ns; 15 + 16 + #endif /* _LINUX_PID_TYPES_H */
+1 -1
include/linux/sched.h
··· 11 11 12 12 #include <asm/current.h> 13 13 14 - #include <linux/pid.h> 14 + #include <linux/pid_types.h> 15 15 #include <linux/sem.h> 16 16 #include <linux/shm.h> 17 17 #include <linux/kmsan_types.h>
+2
include/linux/seccomp.h
··· 126 126 127 127 #ifdef CONFIG_SECCOMP_CACHE_DEBUG 128 128 struct seq_file; 129 + struct pid_namespace; 130 + struct pid; 129 131 130 132 int proc_pid_seccomp_cache(struct seq_file *m, struct pid_namespace *ns, 131 133 struct pid *pid, struct task_struct *task);