aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2015-05-14 01:02:17 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2015-05-14 01:02:17 +0000
commite73037314acbd7848f35da5763249cb9e58ccd89 (patch)
tree4423394eeed50e13a669351b61d4433979627e9d
parent8a25d6ad59a59c00c551151945189b67928002be (diff)
downloadmm-next-e73037314acbd7848f35da5763249cb9e58ccd89.tar.gz
kernel/fork.c: export kernel_thread() to modules
mutex-subsystem-synchro-test-module.patch needs this Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 0e0ae9a7427eb6..1481cdd9b17066 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1765,6 +1765,7 @@ pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
return _do_fork(flags|CLONE_VM|CLONE_UNTRACED, (unsigned long)fn,
(unsigned long)arg, NULL, NULL, 0);
}
+EXPORT_SYMBOL(kernel_thread);
#ifdef __ARCH_WANT_SYS_FORK
SYSCALL_DEFINE0(fork)