Commit e034d49e authored by Kent Overstreet's avatar Kent Overstreet

sem: Split out sem_types.h

More sched.h dependency pruning.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent af6da56a
...@@ -36,6 +36,7 @@ struct mqstat; ...@@ -36,6 +36,7 @@ struct mqstat;
struct audit_watch; struct audit_watch;
struct audit_tree; struct audit_tree;
struct sk_buff; struct sk_buff;
struct kern_ipc_perm;
struct audit_krule { struct audit_krule {
u32 pflags; u32 pflags;
......
...@@ -11,14 +11,16 @@ ...@@ -11,14 +11,16 @@
#include <asm/current.h> #include <asm/current.h>
#include <linux/cache.h>
#include <linux/irqflags_types.h> #include <linux/irqflags_types.h>
#include <linux/pid_types.h> #include <linux/pid_types.h>
#include <linux/sem.h> #include <linux/sem_types.h>
#include <linux/shm.h> #include <linux/shm.h>
#include <linux/kmsan_types.h> #include <linux/kmsan_types.h>
#include <linux/mutex_types.h> #include <linux/mutex_types.h>
#include <linux/plist_types.h> #include <linux/plist_types.h>
#include <linux/hrtimer_types.h> #include <linux/hrtimer_types.h>
#include <linux/timer_types.h>
#include <linux/seccomp_types.h> #include <linux/seccomp_types.h>
#include <linux/nodemask_types.h> #include <linux/nodemask_types.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
......
...@@ -3,25 +3,17 @@ ...@@ -3,25 +3,17 @@
#define _LINUX_SEM_H #define _LINUX_SEM_H
#include <uapi/linux/sem.h> #include <uapi/linux/sem.h>
#include <linux/sem_types.h>
struct task_struct; struct task_struct;
struct sem_undo_list;
#ifdef CONFIG_SYSVIPC #ifdef CONFIG_SYSVIPC
struct sysv_sem {
struct sem_undo_list *undo_list;
};
extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk); extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
extern void exit_sem(struct task_struct *tsk); extern void exit_sem(struct task_struct *tsk);
#else #else
struct sysv_sem {
/* empty */
};
static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk)
{ {
return 0; return 0;
......
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_SEM_TYPES_H
#define _LINUX_SEM_TYPES_H
struct sem_undo_list;
struct sysv_sem {
#ifdef CONFIG_SYSVIPC
struct sem_undo_list *undo_list;
#endif
};
#endif /* _LINUX_SEM_TYPES_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment