Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 24 Sep 2002 08:49:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 24 Sep 2002 08:49:35 -0400 Received: from blackbird.intercode.com.au ([203.32.101.10]:48132 "EHLO blackbird.intercode.com.au") by vger.kernel.org with ESMTP id ; Tue, 24 Sep 2002 08:49:34 -0400 Date: Tue, 24 Sep 2002 22:54:36 +1000 (EST) From: James Morris To: "Michel Eyckmans (MCE)" cc: Kernel Mailing List , Ingo Molnar , Subject: [PATCH] export find_task_by_pid() for 2.5.38 In-Reply-To: <200209230019.g8N0JmvC003642@jebril.pi.be> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1661 Lines: 51 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 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 #include #include +#include #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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/