Skip to contentSkip to conversation

fork and exit: need to include iocontext.h

PATCH In review Randy Dunlap 4 participants 8 messages Jun 30, 2008 – Jul 1, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fork and exit: need to include iocontext.h

From: Randy Dunlap <[email protected]>

Fix fork and exit build errors: they need to include iocontext.h:

linux-next-20080630/kernel/fork.c: In function 'copy_process':
linux-next-20080630/kernel/fork.c:1237: error: implicit declaration of function 'put_io_context' linux-next-20080630/kernel/exit.c: In function 'do_exit':
linux-next-20080630/kernel/exit.c:992: error: implicit declaration of function 'exit_io_context'

---
 kernel/exit.c |    1 +
 kernel/fork.c |    1 +
 2 files changed, 2 insertions(+)
kernel/fork.c +1 -0
@@ -23,6 +23,7 @@
 #include <linux/sem.h>
 #include <linux/file.h>
 #include <linux/fdtable.h>
+#include <linux/iocontext.h>
 #include <linux/key.h>
 #include <linux/binfmts.h>
 #include <linux/mman.h>
kernel/exit.c +1 -0
@@ -13,6 +13,7 @@
 #include <linux/personality.h>
 #include <linux/tty.h>
 #include <linux/mnt_namespace.h>
+#include <linux/iocontext.h>
 #include <linux/key.h>
 #include <linux/security.h>
 #include <linux/cpu.h>

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

#1 lore raw
Quoted 8 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix fork and exit build errors: they need to include iocontext.h:

linux-next-20080630/kernel/fork.c: In function 'copy_process':
linux-next-20080630/kernel/fork.c:1237: error: implicit declaration of function 'put_io_context' linux-next-20080630/kernel/exit.c: In function 'do_exit':
linux-next-20080630/kernel/exit.c:992: error: implicit declaration of function 'exit_io_context'

i havent seen this one - do you know by chance which commit triggers it?

Ingo

#2 lore raw
Quoted 5 lines · On Mon, 30 Jun 2008 20:05:06 +0200 Ingo Molnar wrote:
Quoted 2 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Quoted 8 lines
Quoted 6 lines

Fix fork and exit build errors: they need to include iocontext.h:

linux-next-20080630/kernel/fork.c: In function 'copy_process':
linux-next-20080630/kernel/fork.c:1237: error: implicit declaration of function 'put_io_context' linux-next-20080630/kernel/exit.c: In function 'do_exit':
linux-next-20080630/kernel/exit.c:992: error: implicit declaration of function 'exit_io_context'

i havent seen this one - do you know by chance which commit triggers it?

Sorry, no idea which commit.

In 50 randconfigs today (next-20080630), I saw this one 12 times.

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

#3 lore raw
Quoted 14 lines · Randy Dunlap
Quoted 12 lines · On Mon, 30 Jun 2008 20:05:06 +0200 Ingo Molnar wrote:
Quoted 8 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix fork and exit build errors: they need to include iocontext.h:

linux-next-20080630/kernel/fork.c: In function 'copy_process':
linux-next-20080630/kernel/fork.c:1237: error: implicit declaration of function 'put_io_context' linux-next-20080630/kernel/exit.c: In function 'do_exit':
linux-next-20080630/kernel/exit.c:992: error: implicit declaration of function 'exit_io_context'

Quoted 6 lines
Quoted 1 line

i havent seen this one - do you know by chance which commit triggers it?

Sorry, no idea which commit.

In 50 randconfigs today (next-20080630), I saw this one 12 times.

btw., block.git would be one of my first guesses - Jens Cc:-ed.

normally there's an easy way to find out the source commit of build failures. Try something like:

git-bisect reset
git-bisect start
git-bisect good v2.6.26-rc8
git-bisect bad linux-next/master
git-bisect run make kernel/fork.o

... this should lead you to the commit that broke the build automatically. (as long as everyone keeps make oldconfig compatibility)

Ingo

#7 lore raw
In reply to Randy Dunlap
Quoted 8 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix fork and exit build errors: they need to include iocontext.h:

linux-next-20080630/kernel/fork.c: In function 'copy_process':
linux-next-20080630/kernel/fork.c:1237: error: implicit declaration of function 'put_io_context' linux-next-20080630/kernel/exit.c: In function 'do_exit':
linux-next-20080630/kernel/exit.c:992: error: implicit declaration of function 'exit_io_context'

Thanks Randy, I've updated the patch.

Signature · 1 line
Jens Axboe
#4 lore raw
In reply to Ingo Molnar
Quoted 29 lines · On Mon, 30 Jun 2008 20:33:37 +0200 Ingo Molnar wrote:
Quoted 14 lines · Randy Dunlap
Quoted 12 lines · On Mon, 30 Jun 2008 20:05:06 +0200 Ingo Molnar wrote:
Quoted 8 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix fork and exit build errors: they need to include iocontext.h:

linux-next-20080630/kernel/fork.c: In function 'copy_process':
linux-next-20080630/kernel/fork.c:1237: error: implicit declaration of function 'put_io_context' linux-next-20080630/kernel/exit.c: In function 'do_exit':
linux-next-20080630/kernel/exit.c:992: error: implicit declaration of function 'exit_io_context'

Quoted 6 lines
Quoted 1 line

i havent seen this one - do you know by chance which commit triggers it?

Sorry, no idea which commit.

In 50 randconfigs today (next-20080630), I saw this one 12 times.

btw., block.git would be one of my first guesses - Jens Cc:-ed.

normally there's an easy way to find out the source commit of build failures. Try something like:

Quoted 8 lines

git-bisect reset
git-bisect start
git-bisect good v2.6.26-rc8
git-bisect bad linux-next/master
git-bisect run make kernel/fork.o

... this should lead you to the commit that broke the build automatically. (as long as everyone keeps make oldconfig compatibility)

Thanks for the steps. Maybe someday I'll use git. ;)

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

#5 lore raw
Quoted 37 lines · Randy Dunlap
Quoted 35 lines · On Mon, 30 Jun 2008 20:33:37 +0200 Ingo Molnar wrote:
Quoted 14 lines · Randy Dunlap
Quoted 12 lines · On Mon, 30 Jun 2008 20:05:06 +0200 Ingo Molnar wrote:
Quoted 8 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix fork and exit build errors: they need to include iocontext.h:

linux-next-20080630/kernel/fork.c: In function 'copy_process':
linux-next-20080630/kernel/fork.c:1237: error: implicit declaration of function 'put_io_context' linux-next-20080630/kernel/exit.c: In function 'do_exit':
linux-next-20080630/kernel/exit.c:992: error: implicit declaration of function 'exit_io_context'

Quoted 6 lines
Quoted 1 line

i havent seen this one - do you know by chance which commit triggers it?

Sorry, no idea which commit.

In 50 randconfigs today (next-20080630), I saw this one 12 times.

btw., block.git would be one of my first guesses - Jens Cc:-ed.

normally there's an easy way to find out the source commit of build failures. Try something like:

git-bisect reset
git-bisect start
git-bisect good v2.6.26-rc8
git-bisect bad linux-next/master
git-bisect run make kernel/fork.o

Quoted 4 lines
Quoted 2 lines

... this should lead you to the commit that broke the build automatically. (as long as everyone keeps make oldconfig compatibility)

Thanks for the steps. Maybe someday I'll use git. ;)

goodies like this are the perfect receipe towards git-addiction ;-)

Ingo

#6 lore raw
In reply to Ingo Molnar
Quoted 7 lines · On Mon, 30 Jun 2008 20:33:37 +0200 Ingo Molnar <[email protected]> wrote:

normally there's an easy way to find out the source commit of build failures. Try something like:

git-bisect reset
git-bisect start
git-bisect good v2.6.26-rc8

More generally "git-bisect good linux-next/stable" - the stable branch is just where I started on Linus' tree and that is always good :-)

Quoted 5 lines

git-bisect bad linux-next/master
git-bisect run make kernel/fork.o

... this should lead you to the commit that broke the build automatically. (as long as everyone keeps make oldconfig compatibility)

Nice, I must try this.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/