summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-29 01:09:00 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-29 16:19:24 +0100
commit5557f2ca9d526874a7fc499c1068ea93628a40fa (patch)
tree62b95571fecd6508c804940be4888c1f4391309a /ddb
parenta8fbf3737be9a6f5fd1d87765072292d54e54aac (diff)
Enable -Wmissing-prototypes.
* Makefile.am: enable -Wmissing-prototypes * ddb/db_inout.h: Prototype kdb_kintr for entering into DDB. * ddb/db_mp.c Include ddb/db_input.h to get kdb_kintr. * i386/i386at/kd.h: Include ddb/input.h to get kdb_kintr. * linux/Makefrag.am: Disable some of the new warnings for linux drivers, otherwise we will get more and more noise. Message-Id: <Y9YNfNaYSsZJFST5@mercury.tail36e24.ts.net>
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_input.h3
-rw-r--r--ddb/db_mp.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/ddb/db_input.h b/ddb/db_input.h
index 77f07bb6..352f035e 100644
--- a/ddb/db_input.h
+++ b/ddb/db_input.h
@@ -23,6 +23,9 @@
#include <sys/types.h>
+/* Needs to be implemented by each arch. */
+extern void kdb_kintr(void);
+
extern int db_readline (char *lstart, int lsize);
extern void db_check_interrupt(void);
diff --git a/ddb/db_mp.c b/ddb/db_mp.c
index 7c0f6f26..f4e5fa3e 100644
--- a/ddb/db_mp.c
+++ b/ddb/db_mp.c
@@ -38,6 +38,7 @@
#include <machine/db_interface.h>
#include <ddb/db_command.h>
+#include <ddb/db_input.h>
#include <ddb/db_run.h>
#include <ddb/db_mp.h>
#include <ddb/db_output.h>