patch-1.3.42 linux/kernel/fork.c

Next file: linux/kernel/ksyms.c
Previous file: linux/kernel/exit.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.41/linux/kernel/fork.c linux/kernel/fork.c
@@ -29,7 +29,7 @@
 int nr_tasks=1;
 int nr_running=1;
 
-static int find_empty_process(void)
+static inline int find_empty_process(void)
 {
 	int i;
 	struct task_struct *p;
@@ -75,7 +75,7 @@
 	return last_pid;
 }
 
-static int dup_mmap(struct mm_struct * mm)
+static inline int dup_mmap(struct mm_struct * mm)
 {
 	struct vm_area_struct * mpnt, **p, *tmp;
 
@@ -110,7 +110,7 @@
 	return 0;
 }
 
-static int copy_mm(unsigned long clone_flags, struct task_struct * tsk)
+static inline int copy_mm(unsigned long clone_flags, struct task_struct * tsk)
 {
 	if (clone_flags & CLONE_VM) {
 		SET_PAGE_DIR(tsk, current->mm->pgd);
@@ -134,7 +134,7 @@
 	return 0;
 }
 
-static int copy_fs(unsigned long clone_flags, struct task_struct * tsk)
+static inline int copy_fs(unsigned long clone_flags, struct task_struct * tsk)
 {
 	if (clone_flags & CLONE_FS) {
 		current->fs->count++;
@@ -152,7 +152,7 @@
 	return 0;
 }
 
-static int copy_files(unsigned long clone_flags, struct task_struct * tsk)
+static inline int copy_files(unsigned long clone_flags, struct task_struct * tsk)
 {
 	int i;
 
@@ -175,7 +175,7 @@
 	return 0;
 }
 
-static int copy_sighand(unsigned long clone_flags, struct task_struct * tsk)
+static inline int copy_sighand(unsigned long clone_flags, struct task_struct * tsk)
 {
 	if (clone_flags & CLONE_SIGHAND) {
 		current->sig->count++;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this