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

sem: Split out sem_types.h

More sched.h dependency pruning.

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

+18 -10
+1
include/linux/audit.h
··· 36 36 struct audit_watch; 37 37 struct audit_tree; 38 38 struct sk_buff; 39 + struct kern_ipc_perm; 39 40 40 41 struct audit_krule { 41 42 u32 pflags;
+3 -1
include/linux/sched.h
··· 11 11 12 12 #include <asm/current.h> 13 13 14 + #include <linux/cache.h> 14 15 #include <linux/irqflags_types.h> 15 16 #include <linux/pid_types.h> 16 - #include <linux/sem.h> 17 + #include <linux/sem_types.h> 17 18 #include <linux/shm.h> 18 19 #include <linux/kmsan_types.h> 19 20 #include <linux/mutex_types.h> 20 21 #include <linux/plist_types.h> 21 22 #include <linux/hrtimer_types.h> 23 + #include <linux/timer_types.h> 22 24 #include <linux/seccomp_types.h> 23 25 #include <linux/nodemask_types.h> 24 26 #include <linux/rcupdate.h>
+1 -9
include/linux/sem.h
··· 3 3 #define _LINUX_SEM_H 4 4 5 5 #include <uapi/linux/sem.h> 6 + #include <linux/sem_types.h> 6 7 7 8 struct task_struct; 8 - struct sem_undo_list; 9 9 10 10 #ifdef CONFIG_SYSVIPC 11 - 12 - struct sysv_sem { 13 - struct sem_undo_list *undo_list; 14 - }; 15 11 16 12 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk); 17 13 extern void exit_sem(struct task_struct *tsk); 18 14 19 15 #else 20 - 21 - struct sysv_sem { 22 - /* empty */ 23 - }; 24 16 25 17 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) 26 18 {
+13
include/linux/sem_types.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef _LINUX_SEM_TYPES_H 3 + #define _LINUX_SEM_TYPES_H 4 + 5 + struct sem_undo_list; 6 + 7 + struct sysv_sem { 8 + #ifdef CONFIG_SYSVIPC 9 + struct sem_undo_list *undo_list; 10 + #endif 11 + }; 12 + 13 + #endif /* _LINUX_SEM_TYPES_H */