diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-01-18 02:07:17 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-18 02:07:56 +0100 |
commit | c17cb87cc97f817f9705ef932fe2da6d23a1d01a (patch) | |
tree | 0be51c8076f44ab0e9dc513b6a5b1bb53620039e /kern | |
parent | 67776029423f364c6d9fce4f6c0e80a045a46218 (diff) | |
download | gnumach-c17cb87cc97f817f9705ef932fe2da6d23a1d01a.tar.gz gnumach-c17cb87cc97f817f9705ef932fe2da6d23a1d01a.tar.bz2 gnumach-c17cb87cc97f817f9705ef932fe2da6d23a1d01a.zip |
Add static qualifiers
stack_statistics, swapin_thread_continue, and memory_object_lock_page are
not used outside their module.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/thread.c | 2 | ||||
-rw-r--r-- | kern/thread_swap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kern/thread.c b/kern/thread.c index 06825bff..db290f7e 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -2403,7 +2403,7 @@ void stack_finalize( * *maxusagep must be initialized by the caller. */ -void stack_statistics( +static void stack_statistics( natural_t *totalp, vm_size_t *maxusagep) { diff --git a/kern/thread_swap.c b/kern/thread_swap.c index 20ad0409..ecfe48e4 100644 --- a/kern/thread_swap.c +++ b/kern/thread_swap.c @@ -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; |