[2.6 patch] mn10300: export kernel_thread

From: Adrian Bunk
Date: Mon Apr 14 2008 - 14:47:53 EST


On Mon, Apr 14, 2008 at 04:14:29PM +0100, David Howells wrote:
> Adrian Bunk <bunk@xxxxxxxxxx> wrote:
>
> > +EXPORT_SYMBOL_GPL(kernel_thread);
>
> Please use EXPORT_SYMBOL() to be consistent with the other archs, but apart
> from that, it looks fine.

Updated patch below.

> David

cu
Adrian


<-- snip -->


This patch fixes the following build error:

<-- snip -->

...
MODPOST 1256 modules
ERROR: "kernel_thread" [net/sunrpc/sunrpc.ko] undefined!
ERROR: "kernel_thread" [net/ipv4/ipvs/ip_vs.ko] undefined!
ERROR: "kernel_thread" [net/bluetooth/hidp/hidp.ko] undefined!
ERROR: "kernel_thread" [net/bluetooth/cmtp/cmtp.ko] undefined!
ERROR: "kernel_thread" [net/bluetooth/bnep/bnep.ko] undefined!
ERROR: "kernel_thread" [fs/nfs/nfs.ko] undefined!
ERROR: "kernel_thread" [fs/lockd/lockd.ko] undefined!
ERROR: "kernel_thread" [fs/jffs2/jffs2.ko] undefined!
ERROR: "kernel_thread" [drivers/usb/atm/usbatm.ko] undefined!
...
make[2]: *** [__modpost] Error 1

<-- snip -->

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---
29ac94237884159dbf941c276daf4d3dbe3cf2a5 diff --git a/arch/mn10300/kernel/process.c b/arch/mn10300/kernel/process.c
index 3b0d579..345dadb 100644
--- a/arch/mn10300/kernel/process.c
+++ b/arch/mn10300/kernel/process.c
@@ -154,6 +154,7 @@ int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, &regs, 0,
NULL, NULL);
}
+EXPORT_SYMBOL(kernel_thread);

/*
* free current thread data structures etc..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/