linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Morris <jmorris@intercode.com.au>
To: "Michel Eyckmans (MCE)" <mce@pi.be>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@elte.hu>, <netfilter-devel@lists.samba.org>
Subject: [PATCH] export find_task_by_pid() for 2.5.38
Date: Tue, 24 Sep 2002 22:54:36 +1000 (EST)	[thread overview]
Message-ID: <Mutt.LNX.4.44.0209242252160.1028-100000@blackbird.intercode.com.au> (raw)
In-Reply-To: <200209230019.g8N0JmvC003642@jebril.pi.be>

On Mon, 23 Sep 2002, Michel Eyckmans (MCE) wrote:

> By the way, 2.3.38 gives me this:
> 
> depmod: *** Unresolved symbols in /lib/modules/2.5.38/kernel/net/ipv4/netfilter/ipt_owner.o
> depmod:         find_task_by_pid
> 

Below is a patch which exports the function, which used to be an inline.  
(This is also an issue for ip6t_owner).

- James
-- 
James Morris
<jmorris@intercode.com.au>

diff -urN -X dontdiff linux-2.5.38.orig/kernel/Makefile linux-2.5.38.w1/kernel/Makefile
--- linux-2.5.38.orig/kernel/Makefile	Tue Sep 24 19:23:03 2002
+++ linux-2.5.38.w1/kernel/Makefile	Tue Sep 24 22:14:47 2002
@@ -3,7 +3,7 @@
 #
 
 export-objs = signal.o sys.o kmod.o context.o ksyms.o pm.o exec_domain.o \
-		printk.o platform.o suspend.o dma.o
+		printk.o platform.o suspend.o dma.o pid.o
 
 obj-y     = sched.o fork.o exec_domain.o panic.o printk.o \
 	    module.o exit.o itimer.o time.o softirq.o resource.o \
diff -urN -X dontdiff linux-2.5.38.orig/kernel/pid.c linux-2.5.38.w1/kernel/pid.c
--- linux-2.5.38.orig/kernel/pid.c	Tue Sep 24 19:23:03 2002
+++ linux-2.5.38.w1/kernel/pid.c	Tue Sep 24 22:23:56 2002
@@ -23,6 +23,7 @@
 #include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/bootmem.h>
+#include <linux/module.h>
 
 #define PIDHASH_SIZE 4096
 #define pid_hashfn(nr) ((nr >> 8) ^ nr) & (PIDHASH_SIZE - 1)
@@ -217,3 +218,5 @@
 		attach_pid(current, i, 0);
 	}
 }
+
+EXPORT_SYMBOL(find_task_by_pid);


  parent reply	other threads:[~2002-09-24 12:49 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-22  4:34 Linux 2.5.38 Linus Torvalds
2002-09-22  6:16 ` make bzImage fails on 2.5.38 Aniruddha Shankar
2002-09-22  6:31   ` Alexander Viro
2002-09-22  6:43     ` [PATCH] " Hiroshi Takekawa
2002-09-22  6:56     ` Aniruddha Shankar
2002-09-22  9:54     ` Arjan van de Ven
2002-09-22 10:14       ` Alexander Viro
2002-09-22 10:53 ` [BUG,PATCH] 2.5.38 floppy Philipp Matthias Hahn
2002-09-22 13:09 ` Linux 2.5.38 Adrian Bunk
2002-09-22 13:21   ` Alexander Viro
2002-09-22 20:02 ` Jochen Friedrich
2002-09-22 20:07   ` Arnaldo Carvalho de Melo
2002-09-22 20:22   ` Jochen Friedrich
2002-09-23  1:44     ` Peter Rival
2002-09-23  2:32       ` Linus Torvalds
2002-09-23  2:39         ` Jeff Garzik
2002-09-22 21:59 ` [PATCH] #include <linux/version.h> missing in drivers/usb/host/ohci-hcd.c Luc Van Oostenryck
2002-09-23 19:51   ` Greg KH
2002-09-23  0:19 ` Linux 2.5.38 Michel Eyckmans (MCE)
2002-09-23  0:57   ` Skip Ford
2002-09-23  2:27   ` Linus Torvalds
2002-09-23 23:06     ` Michel Eyckmans (MCE)
2002-09-23 23:23       ` Linus Torvalds
2002-09-24 22:42         ` Michel Eyckmans (MCE)
2002-09-25 17:46           ` Bill Davidsen
2002-09-26  0:43             ` Russell King
2002-09-24 12:54   ` James Morris [this message]
2002-09-23 12:53 ` Clemens Schwaighofer
2002-09-23 15:28 ` Linux 2.5.38 [PATCH] IrDA Philipp Matthias Hahn
2002-09-23 22:04   ` Jean Tourrilhes
2002-09-26 20:40 ` [PATCH] Re: Linux 2.5.38 Rasmus Andersen
2002-09-26 21:12 ` Rasmus Andersen

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=Mutt.LNX.4.44.0209242252160.1028-100000@blackbird.intercode.com.au \
    --to=jmorris@intercode.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mce@pi.be \
    --cc=mingo@elte.hu \
    --cc=netfilter-devel@lists.samba.org \
    /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;
as well as URLs for NNTP newsgroup(s).