mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dup_task_struct can be static
@ 2002-06-20  2:18 Stephen Rothwell
  2002-06-20  6:18 ` David Mosberger
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2002-06-20  2:18 UTC (permalink / raw)
  To: Linus; +Cc: LKML, Trivial Kernel Patches, davidm

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] dup_task_struct can be static
  2002-06-20  2:18 [PATCH] dup_task_struct can be static Stephen Rothwell
@ 2002-06-20  6:18 ` David Mosberger
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2002-06-20  6:18 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Linus, LKML, Trivial Kernel Patches

>>>>> On Thu, 20 Jun 2002 12:18:13 +1000, Stephen Rothwell <sfr@canb.auug.org.au> said:

  Stephen> Hi Linus,
  Stephen> [There may be lots of these depending on how bored I get :-)]

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

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

It does---once you apply a small patch by David Howells which hasn't
made it into Linus' tree yet.

	--david

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-20  6:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-20  2:18 [PATCH] dup_task_struct can be static Stephen Rothwell
2002-06-20  6:18 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®