summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-11 22:53:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-11 22:53:50 -0700
commitc334f752d8e9d3847d4459d06f7544dea9a49923 (patch)
treee443483a21ab52769cba5030004ecbdd2768eb53 /kernel
parent00d1b0e9990815e31be7e502801f3a421fcccafa (diff)
[PATCH] posix message queues: code move
From: Manfred Spraul <manfred@colorfullife.com> cleanup of sysv ipc as a preparation for posix message queues: - replace !CONFIG_SYSVIPC wrappers for copy_semundo and exit_sem with static inline wrappers. Now the whole ipc/util.c file is only used if CONFIG_SYSVIPC is set, use makefile magic instead of #ifdef. - remove the prototypes for copy_semundo and exit_sem from kernel/fork.c - they belong into a header file. - create a new msgutil.c with the helper functions for message queues. - cleanup the helper functions: run Lindent, add __user tags.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 3b17a249c50d..a1f20cabbdd3 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -21,6 +21,7 @@
#include <linux/completion.h>
#include <linux/namespace.h>
#include <linux/personality.h>
+#include <linux/sem.h>
#include <linux/file.h>
#include <linux/binfmts.h>
#include <linux/mman.h>
@@ -39,9 +40,6 @@
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
-extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
-extern void exit_sem(struct task_struct *tsk);
-
/* The idle threads do not count..
* Protected by write_lock_irq(&tasklist_lock)
*/