From fed2c08c45bd0e87b90d07fd52011de129be9315 Mon Sep 17 00:00:00 2001
From: Flavio Cruz <flaviocruz@gmail.com>
Date: Fri, 20 Jan 2023 01:19:53 -0500
Subject: Fix several warnings for -Wmissing-prototypes

* device/ds_routines.c: use static qualifier.
* device/subrs.c: delete unused functions.
* i386/i386/ast_check.c: include prototypes in kern/ast.h
* i386/i386/db_disasm.c: Include prototypes in ddb/db_examine.h
* i386/i386/db_interface.h: Define prototype for kdb_kentry. Expose
  debug methods feep and kd_debug_put.
* i386/i386/db_trace.c: delete left over cthreads support, functions are
  not used.
* i386/i386/model_dep.h: Define prototype for c_boot_entry.
* i386/i386at/acpi_parse_apic.c: Static qualifiers.
* i386/i386at/autoconf.c: Include header file for prototypes and remove
  dead code.
* i386/i386at/autoconf.h: Fix prototype.
* i386/i386at/com.c: Add static qualifiers, delete dead code.
* i386/i386at/com.c: ditto.
* i386/i386at/com.h: Define prototypes for debug functions.
* i386/i386at/int_init.c: Include header.
* i386/i386at/kd.c: Include header for debug interface. Remove dead
  kd_cmdreg_read and make xga_getpos static.
* i386/i386at/kd_mouse.c: Static qualifiers.
* i386/i386at/lpr.c: Dead lprpr.
* i386/i386at/model_dep.c: Remove exit function.
* kern/mach_clock.c: Include mig prototypes.
* kern/mach_clock.h: Remove duplicates of mig prototypes.
* kern/machine.c: Use static.
* kern/startup.c: slave_main is unused.
* kern/thread.h: Define thread_stats that is useful for debugging.
* kern/timer.c: Keep db_thread_times since it can be used for debugging.
* kern/timer.h: ditto.
* linux/dev/glue/misc.c: Use mig header for host_get_time.
Message-Id: <Y8oyiecaflCaYhaW@mercury.tail36e24.ts.net>
---
 i386/i386at/kd_mouse.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'i386/i386at/kd_mouse.c')

diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c
index 906c1d37..c870cf5a 100644
--- a/i386/i386at/kd_mouse.c
+++ b/i386/i386at/kd_mouse.c
@@ -110,7 +110,7 @@ int		mouse_char_index;		/* mouse response */
 /*
  * init_mouse_hw - initialize the serial port.
  */
-void
+static void
 init_mouse_hw(dev_t unit, int mode)
 {
 	unsigned short base_addr  = cominfo[unit]->address;
@@ -594,7 +594,7 @@ mouse_packet_microsoft_mouse(u_char mousebuf[MOUSEBUFSIZE])
 /*
  *	Write character to mouse.  Called at spltty.
  */
-void kd_mouse_write(
+static void kd_mouse_write(
 	unsigned char	ch)
 {
 	while (inb(K_STATUS) & K_IBUF_FUL)
@@ -610,7 +610,7 @@ void kd_mouse_write(
  *	Read next character from mouse, waiting for interrupt
  *	to deliver it.  Called at spltty.
  */
-int kd_mouse_read(void)
+static int kd_mouse_read(void)
 {
 	int	ch;
 
@@ -633,7 +633,7 @@ int kd_mouse_read(void)
 /*
  *	Prepare buffer for receiving next packet from mouse.
  */
-void kd_mouse_read_reset(void)
+static void kd_mouse_read_reset(void)
 {
 	mousebufindex = 0;
 	mouse_char_index = 0;
-- 
cgit v1.2.3