From 84e0fb3f287864eca3a9322ef364b913f6a260bd Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 25 Dec 2022 20:41:46 -0500 Subject: Fix some warnings with -Wmissing-prototypes. Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: --- kern/syscall_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kern/syscall_subr.c') diff --git a/kern/syscall_subr.c b/kern/syscall_subr.c index 1aa4bc27..0030e027 100644 --- a/kern/syscall_subr.c +++ b/kern/syscall_subr.c @@ -61,7 +61,7 @@ * returned, the thread should make one more check on the * lock and then be a good citizen and really suspend. */ -void swtch_continue(void) +static void swtch_continue(void) { processor_t myprocessor; @@ -89,7 +89,7 @@ boolean_t swtch(void) myprocessor->processor_set->runq.count > 0); } -void swtch_pri_continue(void) +static void swtch_pri_continue(void) { thread_t thread = current_thread(); processor_t myprocessor; @@ -130,7 +130,7 @@ boolean_t swtch_pri(int pri) myprocessor->processor_set->runq.count > 0); } -void thread_switch_continue(void) +static void thread_switch_continue(void) { thread_t cur_thread = current_thread(); -- cgit v1.2.3