linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.5.34 - EXPORT_SYMBOL(reparent_to_init) for module build
@ 2002-09-10  0:21 Patrick Mansfield
  2002-09-10  0:24 ` John Levon
  2002-09-10  5:14 ` Rusty Russell
  0 siblings, 2 replies; 5+ messages in thread
From: Patrick Mansfield @ 2002-09-10  0:21 UTC (permalink / raw)
  To: linux-kernel, rusty

With 2.5.34, in order to build a module that calls daemonize(), I had to 
export reparent_to_init:

--- 1.45/kernel/ksyms.c	Mon Sep  9 03:35:51 2002
+++ edited/kernel/ksyms.c	Mon Sep  9 16:52:29 2002
@@ -521,6 +521,7 @@
 EXPORT_SYMBOL(securebits);
 EXPORT_SYMBOL(cap_bset);
 EXPORT_SYMBOL(daemonize);
+EXPORT_SYMBOL(reparent_to_init);
 EXPORT_SYMBOL(csum_partial); /* for networking and md */
 EXPORT_SYMBOL(seq_escape);
 EXPORT_SYMBOL(seq_printf);

-- Patrick Mansfield

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

* Re: 2.5.34 - EXPORT_SYMBOL(reparent_to_init) for module build
  2002-09-10  0:21 2.5.34 - EXPORT_SYMBOL(reparent_to_init) for module build Patrick Mansfield
@ 2002-09-10  0:24 ` John Levon
  2002-09-10  1:12   ` Patrick Mansfield
  2002-09-10  5:14 ` Rusty Russell
  1 sibling, 1 reply; 5+ messages in thread
From: John Levon @ 2002-09-10  0:24 UTC (permalink / raw)
  To: linux-kernel

On Mon, Sep 09, 2002 at 05:21:11PM -0700, Patrick Mansfield wrote:

> With 2.5.34, in order to build a module that calls daemonize(), I had to 
> export reparent_to_init:

I suggest you check the source of daemonize() in 2.5.34 ;)

regards
john
-- 
"This *is* Usenet, after all, where virtually every conversation that goes on
is fairly ludicrous in the first place."
	- Godwin's Law FAQ

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

* Re: 2.5.34 - EXPORT_SYMBOL(reparent_to_init) for module build
  2002-09-10  0:24 ` John Levon
@ 2002-09-10  1:12   ` Patrick Mansfield
  2002-09-10  1:27     ` John Levon
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Mansfield @ 2002-09-10  1:12 UTC (permalink / raw)
  To: John Levon; +Cc: linux-kernel

On Tue, Sep 10, 2002 at 01:24:18AM +0100, John Levon wrote:
> On Mon, Sep 09, 2002 at 05:21:11PM -0700, Patrick Mansfield wrote:
> 
> > With 2.5.34, in order to build a module that calls daemonize(), I had to 
> > export reparent_to_init:
> 
> I suggest you check the source of daemonize() in 2.5.34 ;)
> 
> regards
> john

OK, thanks, I thought I grepped the module source (qla v6b5 adapter, not
included in the kernel tree), but missed the call to reparent_to_init().
I was wondering why I'd need an export for a function only called from
within in its own file. I removed the reparent_to_init call and it worked
fine.

Perhaps reparent_to_init should now be static?

Thanks.

-- Patrick Mansfield

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

* Re: 2.5.34 - EXPORT_SYMBOL(reparent_to_init) for module build
  2002-09-10  1:12   ` Patrick Mansfield
@ 2002-09-10  1:27     ` John Levon
  0 siblings, 0 replies; 5+ messages in thread
From: John Levon @ 2002-09-10  1:27 UTC (permalink / raw)
  To: linux-kernel

On Mon, Sep 09, 2002 at 06:12:16PM -0700, Patrick Mansfield wrote:

> Perhaps reparent_to_init should now be static?

My grep certainly agrees with this. (Don't forget to remove the
prototype in sched.h too).

regards
john

-- 
"This *is* Usenet, after all, where virtually every conversation that goes on
is fairly ludicrous in the first place."
	- Godwin's Law FAQ

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

* Re: 2.5.34 - EXPORT_SYMBOL(reparent_to_init) for module build
  2002-09-10  0:21 2.5.34 - EXPORT_SYMBOL(reparent_to_init) for module build Patrick Mansfield
  2002-09-10  0:24 ` John Levon
@ 2002-09-10  5:14 ` Rusty Russell
  1 sibling, 0 replies; 5+ messages in thread
From: Rusty Russell @ 2002-09-10  5:14 UTC (permalink / raw)
  To: Patrick Mansfield; +Cc: linux-kernel

In message <20020909172111.A19949@eng2.beaverton.ibm.com> you write:
> With 2.5.34, in order to build a module that calls daemonize(), I had to 
> export reparent_to_init:

Why?

Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

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

end of thread, other threads:[~2002-09-10  5:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10  0:21 2.5.34 - EXPORT_SYMBOL(reparent_to_init) for module build Patrick Mansfield
2002-09-10  0:24 ` John Levon
2002-09-10  1:12   ` Patrick Mansfield
2002-09-10  1:27     ` John Levon
2002-09-10  5:14 ` Rusty Russell

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).