summaryrefslogtreecommitdiff
path: root/kern/thread_swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/thread_swap.c')
-rw-r--r--kern/thread_swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/thread_swap.c b/kern/thread_swap.c
index 20ad0409..a5fc0523 100644
--- a/kern/thread_swap.c
+++ b/kern/thread_swap.c
@@ -60,7 +60,7 @@
queue_head_t swapin_queue;
-decl_simple_lock_data(, swapper_lock_data)
+def_simple_lock_data(static, swapper_lock_data)
#define swapper_lock() simple_lock(&swapper_lock_data)
#define swapper_unlock() simple_unlock(&swapper_lock_data)
@@ -156,7 +156,7 @@ kern_return_t thread_doswapin(thread_t thread)
* This procedure executes as a kernel thread. Threads that need to
* be swapped in are swapped in by this thread.
*/
-void __attribute__((noreturn)) swapin_thread_continue(void)
+static void __attribute__((noreturn)) swapin_thread_continue(void)
{
for (;;) {
thread_t thread;