summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2017-12-13 01:10:38 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2017-12-13 01:10:38 +0000
commita0dd66fc2eb9c356b8e7b0023e54ac9dbc50cbbd (patch)
tree3ae3c78583984dabb606560862cc110e32ba9257
parent8c781e26d63628517824d5d5218e76c2e38da91a (diff)
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 d6062c036a9b..0914307d4f3b 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2159,6 +2159,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)