From: Adrian Bunk exit_sem() can now become static. Signed-off-by: Adrian Bunk Cc: Matt Helsley Signed-off-by: Andrew Morton --- include/linux/sem.h | 5 ----- ipc/sem.c | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff -puN include/linux/sem.h~task-watchers-register-semundo-task-watcher-cleanup include/linux/sem.h --- a/include/linux/sem.h~task-watchers-register-semundo-task-watcher-cleanup +++ a/include/linux/sem.h @@ -141,7 +141,6 @@ struct sysv_sem { #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) @@ -149,10 +148,6 @@ static inline int copy_semundo(unsigned return 0; } -static inline void exit_sem(struct task_struct *tsk) -{ - return; -} #endif #endif /* __KERNEL__ */ diff -puN ipc/sem.c~task-watchers-register-semundo-task-watcher-cleanup ipc/sem.c --- a/ipc/sem.c~task-watchers-register-semundo-task-watcher-cleanup +++ a/ipc/sem.c @@ -102,6 +102,7 @@ static struct ipc_ids init_sem_ids; static int newary (struct ipc_namespace *, key_t, int, int); static void freeary (struct ipc_namespace *ns, struct sem_array *sma, int id); +static void exit_sem(struct task_struct *tsk); #ifdef CONFIG_PROC_FS static int sysvipc_sem_proc_show(struct seq_file *s, void *it); #endif @@ -1343,7 +1344,7 @@ int copy_semundo(unsigned long clone_fla * The current implementation does not do so. The POSIX standard * and SVID should be consulted to determine what behavior is mandated. */ -void exit_sem(struct task_struct *tsk) +static void exit_sem(struct task_struct *tsk) { struct sem_undo_list *undo_list; struct sem_undo *u, **up; _