File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ struct mqstat;
3636struct audit_watch ;
3737struct audit_tree ;
3838struct sk_buff ;
39+ struct kern_ipc_perm ;
3940
4041struct audit_krule {
4142 u32 pflags ;
Original file line number Diff line number Diff line change 1111
1212#include <asm/current.h>
1313
14+ #include <linux/cache.h>
1415#include <linux/irqflags_types.h>
1516#include <linux/pid_types.h>
16- #include <linux/sem .h>
17+ #include <linux/sem_types .h>
1718#include <linux/shm.h>
1819#include <linux/kmsan_types.h>
1920#include <linux/mutex_types.h>
2021#include <linux/plist_types.h>
2122#include <linux/hrtimer_types.h>
23+ #include <linux/timer_types.h>
2224#include <linux/seccomp_types.h>
2325#include <linux/nodemask_types.h>
2426#include <linux/rcupdate.h>
Original file line number Diff line number Diff line change 33#define _LINUX_SEM_H
44
55#include <uapi/linux/sem.h>
6+ #include <linux/sem_types.h>
67
78struct task_struct ;
8- struct sem_undo_list ;
99
1010#ifdef CONFIG_SYSVIPC
1111
12- struct sysv_sem {
13- struct sem_undo_list * undo_list ;
14- };
15-
1612extern int copy_semundo (unsigned long clone_flags , struct task_struct * tsk );
1713extern void exit_sem (struct task_struct * tsk );
1814
1915#else
2016
21- struct sysv_sem {
22- /* empty */
23- };
24-
2517static inline int copy_semundo (unsigned long clone_flags , struct task_struct * tsk )
2618{
2719 return 0 ;
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments