linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.14-rc2-git2 fails compile -- fs/proc/base.c
@ 2005-09-23  0:22 Pete Clements
  2005-09-23  8:43 ` [PATCH] " Marco Roeland
  0 siblings, 1 reply; 2+ messages in thread
From: Pete Clements @ 2005-09-23  0:22 UTC (permalink / raw)
  To: linux-kernel

Fyi:

  CC      fs/proc/base.o
fs/proc/base.c: In function `proc_task_root_link':
fs/proc/base.c:360: parse error before `struct'
fs/proc/base.c:362: `task' undeclared (first use in this function)
fs/proc/base.c:362: (Each undeclared identifier is reported only once
fs/proc/base.c:362: for each function it appears in.)
make[2]: *** [fs/proc/base.o] Error 1
make[1]: *** [fs/proc] Error 2

-- 
Pete Clements 

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

* [PATCH] Re: 2.6.14-rc2-git2 fails compile -- fs/proc/base.c
  2005-09-23  0:22 2.6.14-rc2-git2 fails compile -- fs/proc/base.c Pete Clements
@ 2005-09-23  8:43 ` Marco Roeland
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Roeland @ 2005-09-23  8:43 UTC (permalink / raw)
  To: Pete Clements; +Cc: linux-kernel

Fix gcc 2.95.x compilation for fs/proc/base.c

Signed-off-by: Marco Roeland <marco.roeland@xs4all.nl>

---
 base.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

3fd07d3bf0077dcc0f5a33d2eb1938ea050da8da
diff --git a/fs/proc/base.c b/fs/proc/base.c
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -356,8 +356,9 @@ static int proc_task_root_link(struct in
 		task_unlock(leader);
 	} else {
 		/* Try to get fs from other threads */
+		struct task_struct *task;
 		task_unlock(leader);
-		struct task_struct *task = leader;
+		task = leader;
 		read_lock(&tasklist_lock);
 		if (pid_alive(task)) {
 			while ((task = next_thread(task)) != leader) {

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

end of thread, other threads:[~2005-09-23  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-23  0:22 2.6.14-rc2-git2 fails compile -- fs/proc/base.c Pete Clements
2005-09-23  8:43 ` [PATCH] " Marco Roeland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).