diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2022-12-25 20:41:46 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-27 00:00:50 +0100 |
commit | 84e0fb3f287864eca3a9322ef364b913f6a260bd (patch) | |
tree | 123333bce32a7d57c5112aa0d4c07b12821b6305 /kern/sched_prim.c | |
parent | 63eefc08b5e762937118254ad0b82583cc38a2d2 (diff) | |
download | gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.tar.gz gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.tar.bz2 gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.zip |
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: <Y6j72lWRL9rsYy4j@mars>
Diffstat (limited to 'kern/sched_prim.c')
-rw-r--r-- | kern/sched_prim.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kern/sched_prim.c b/kern/sched_prim.c index 63a0437c..9e7a9c55 100644 --- a/kern/sched_prim.c +++ b/kern/sched_prim.c @@ -134,7 +134,7 @@ decl_simple_lock_data(, wait_lock[NUMQUEUES]) #define wait_hash(event) \ ((((long)(event) < 0) ? ~(long)(event) : (long)(event)) % NUMQUEUES) -void wait_queue_init(void) +static void wait_queue_init(void) { int i; @@ -162,7 +162,7 @@ void sched_init(void) * Thread timeout routine, called when timer expires. * Called at splsoftclock. */ -void thread_timeout( +static void thread_timeout( void *_thread) { thread_t thread = _thread; @@ -490,7 +490,7 @@ void thread_bind( * Assumes splsched. */ -thread_t thread_select( +static thread_t thread_select( processor_t myprocessor) { thread_t thread; @@ -1604,7 +1604,7 @@ int no_dispatch_count = 0; * to execute. */ -void __attribute__((noreturn)) idle_thread_continue(void) +static void __attribute__((noreturn)) idle_thread_continue(void) { processor_t myprocessor; volatile thread_t *threadp; @@ -1795,7 +1795,7 @@ void idle_thread(void) * we don't want to do at interrupt level. This allows us to * avoid blocking. */ -void sched_thread_continue(void) +static void sched_thread_continue(void) { while (TRUE) { (void) compute_mach_factor(); @@ -1860,7 +1860,7 @@ int stuck_count = 0; * it ran out of space. */ -boolean_t +static boolean_t do_runq_scan( run_queue_t runq) { |