File tree Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ struct mqstat;
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 ;
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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
11
12
- struct sysv_sem {
13
- struct sem_undo_list * undo_list ;
14
- };
15
-
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
16
21
- struct sysv_sem {
22
- /* empty */
23
- };
24
-
25
17
static inline int copy_semundo (unsigned long clone_flags , struct task_struct * tsk )
26
18
{
27
19
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