forked from mirrors/linux
		
	 e034d49eb0
			
		
	
	
		e034d49eb0
		
	
	
	
	
		
			
			More sched.h dependency pruning. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			515 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			515 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| #ifndef _LINUX_SEM_H
 | |
| #define _LINUX_SEM_H
 | |
| 
 | |
| #include <uapi/linux/sem.h>
 | |
| #include <linux/sem_types.h>
 | |
| 
 | |
| struct task_struct;
 | |
| 
 | |
| #ifdef CONFIG_SYSVIPC
 | |
| 
 | |
| extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
 | |
| extern void exit_sem(struct task_struct *tsk);
 | |
| 
 | |
| #else
 | |
| 
 | |
| static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk)
 | |
| {
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| static inline void exit_sem(struct task_struct *tsk)
 | |
| {
 | |
| 	return;
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif /* _LINUX_SEM_H */
 |