mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Linus <torvalds@transmeta.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Trivial Kernel Patches <trivial@rustcorp.com.au>,
	davidm@hpl.hp.com
Subject: [PATCH] dup_task_struct can be static
Date: Thu, 20 Jun 2002 12:18:13 +1000	[thread overview]
Message-ID: <20020620121813.4d1e075f.sfr@canb.auug.org.au> (raw)

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;

             reply	other threads:[~2002-06-20  2:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20  2:18 Stephen Rothwell [this message]
2002-06-20  6:18 ` David Mosberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020620121813.4d1e075f.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=davidm@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®