[PATCH] dup_task_struct can be static

Stephen Rothwell (sfr@canb.auug.org.au)
Thu, 20 Jun 2002 12:18:13 +1000


Hi Linus,

[There may be lots of these depending on how bored I get :-)]

dup_task_struct is defined and used only in kernel/fork.c.

[This is not quite true, as arch/ia64/kernel/process.c also
defines a global dup_task_struct function, but I don't know
how it could ever be called.]

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.23/kernel/fork.c 2.5.23-sfr.2/kernel/fork.c --- 2.5.23/kernel/fork.c Wed Jun 19 12:41:51 2002 +++ 2.5.23-sfr.2/kernel/fork.c Thu Jun 20 12:03:27 2002 @@ -99,7 +99,7 @@ init_task.rlim[RLIMIT_NPROC].rlim_max = max_threads/2; } -struct task_struct *dup_task_struct(struct task_struct *orig) +static struct task_struct *dup_task_struct(struct task_struct *orig) { struct task_struct *tsk; struct thread_info *ti; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/