From 4d23eb80dbf1f9c7477ce497e6924b774e1949e1 Mon Sep 17 00:00:00 2001 From: Antonio Huete Jimenez Date: Fri, 24 Feb 2012 11:01:30 +0100 Subject: [PATCH] kern - Do not expose _kthread_create() Pointed-out-by: aggelos --- sys/kern/kern_kthread.c | 2 +- sys/sys/kthread.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index 1d4024c833..4fa6f4f1a0 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -45,7 +45,7 @@ static struct lwkt_token kpsus_token = LWKT_TOKEN_INITIALIZER(kpsus_token); /* * Create a new lightweight kernel thread. */ -int +static int _kthread_create(void (*func)(void *), void *arg, struct thread **tdp, int cpu, const char *fmt, ...) { diff --git a/sys/sys/kthread.h b/sys/sys/kthread.h index c1dd4de57a..3b6d6d9d50 100644 --- a/sys/sys/kthread.h +++ b/sys/sys/kthread.h @@ -59,8 +59,6 @@ int suspend_kproc (struct thread *, int); int resume_kproc (struct thread *); void kproc_suspend_loop (void); void shutdown_kproc (void *, int); -int _kthread_create(void (*)(void *), void *, struct thread **, - int, const char *, ...) __printflike(5, 6); int kthread_create (void (*)(void *), void *, struct thread **, const char *, ...) __printflike(4, 5); int kthread_create_cpu (void (*)(void *), void *, struct thread **, -- 2.41.0