From d9ec06192725bb6bf023120e99cbe8da33756628 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 21 Sep 2021 18:37:01 +0200 Subject: start using sparse's `-Wdecl` --- src/kernel/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/proc.c') diff --git a/src/kernel/proc.c b/src/kernel/proc.c index 13ce759..b9f96c8 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -9,7 +9,7 @@ struct process *process_first; struct process *process_current; -uint32_t next_pid = 0; +static uint32_t next_pid = 0; struct process *process_seed(void) { struct process *proc = kmalloc(sizeof *proc); @@ -72,7 +72,7 @@ _Noreturn void process_switch_any(void) { } // TODO there's no check for going past the stack - VULN -struct process *_process_find_recursive( +static struct process *_process_find_recursive( enum process_state target, struct process *iter) { struct process *in; while (iter) { -- cgit v1.2.3