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/machine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kern/machine.c') diff --git a/kern/machine.c b/kern/machine.c index 0e1781cc..6f481a5c 100644 --- a/kern/machine.c +++ b/kern/machine.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -103,7 +104,7 @@ void cpu_up(int cpu) * Flag specified cpu as down. Called when a processor is about to * go offline. */ -void cpu_down(int cpu) +static void cpu_down(int cpu) { struct machine_slot *ms; processor_t processor; -- cgit v1.2.3