summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2020-06-27 16:19:38 +0000
committerjdolecek <jdolecek@NetBSD.org>2020-06-27 16:19:38 +0000
commitbb7f5029e7a81fa2a038bb425750ce2fcf79272e (patch)
tree76720bbb39aaa60ba03b8dd8bde99ba07f17008a /sys/dev/microcode
parentf8943789235d0a64af01fb0d3af142b474fb5659 (diff)
make this compile with normal WARNS
Diffstat (limited to 'sys/dev/microcode')
-rw-r--r--sys/dev/microcode/aic7xxx/aicasm_macro_gram.y4
-rw-r--r--sys/dev/microcode/aic7xxx/aicasm_scan.l9
-rw-r--r--sys/dev/microcode/aic7xxx/aicasm_symbol.c5
3 files changed, 14 insertions, 4 deletions
diff --git a/sys/dev/microcode/aic7xxx/aicasm_macro_gram.y b/sys/dev/microcode/aic7xxx/aicasm_macro_gram.y
index a9fb209d231..e29738539cb 100644
--- a/sys/dev/microcode/aic7xxx/aicasm_macro_gram.y
+++ b/sys/dev/microcode/aic7xxx/aicasm_macro_gram.y
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: aicasm_macro_gram.y,v 1.2 2006/11/25 16:48:32 christos Exp $ */
+/* $NetBSD: aicasm_macro_gram.y,v 1.3 2020/06/27 16:19:38 jdolecek Exp $ */
/*
* Sub-parser for macro invocation in the Aic7xxx SCSI
@@ -66,6 +66,8 @@ static symbol_t *macro_symbol;
static void add_macro_arg(const char *argtext, int position);
+int yylex(void);
+
%}
%union {
diff --git a/sys/dev/microcode/aic7xxx/aicasm_scan.l b/sys/dev/microcode/aic7xxx/aicasm_scan.l
index d9cb42ba4b8..de598313e34 100644
--- a/sys/dev/microcode/aic7xxx/aicasm_scan.l
+++ b/sys/dev/microcode/aic7xxx/aicasm_scan.l
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: aicasm_scan.l,v 1.5 2005/12/11 12:22:18 christos Exp $ */
+/* $NetBSD: aicasm_scan.l,v 1.6 2020/06/27 16:19:38 jdolecek Exp $ */
/*
* Lexical Analyzer for the Aic7xxx SCSI Host adapter sequencer assembler.
*
@@ -60,6 +60,13 @@
#include "aicasm_symbol.h"
#include "aicasm_gram.h"
+int yyparse(void);
+void yy_delete_buffer(YY_BUFFER_STATE);
+int mmlex(void);
+int mmparse(void);
+void mm_delete_buffer(YY_BUFFER_STATE);
+void mm_switch_to_buffer(YY_BUFFER_STATE);
+
/* This is used for macro body capture too, so err on the large size. */
#define MAX_STR_CONST 4096
static char string_buf[MAX_STR_CONST];
diff --git a/sys/dev/microcode/aic7xxx/aicasm_symbol.c b/sys/dev/microcode/aic7xxx/aicasm_symbol.c
index f6e5d9a6fa3..2383b0f68bf 100644
--- a/sys/dev/microcode/aic7xxx/aicasm_symbol.c
+++ b/sys/dev/microcode/aic7xxx/aicasm_symbol.c
@@ -1,4 +1,4 @@
-/* $NetBSD: aicasm_symbol.c,v 1.6 2009/03/18 10:22:40 cegger Exp $ */
+/* $NetBSD: aicasm_symbol.c,v 1.7 2020/06/27 16:19:38 jdolecek Exp $ */
/*
* Aic7xxx SCSI host adapter firmware asssembler symbol table implementation
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: aicasm_symbol.c,v 1.6 2009/03/18 10:22:40 cegger Exp $");
+__RCSID("$NetBSD: aicasm_symbol.c,v 1.7 2020/06/27 16:19:38 jdolecek Exp $");
#include <sys/types.h>
@@ -59,6 +59,7 @@ __RCSID("$NetBSD: aicasm_symbol.c,v 1.6 2009/03/18 10:22:40 cegger Exp $");
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
+#include <ctype.h>
#include "aicasm_symbol.h"
#include "aicasm.h"