diff options
author | wollman <wollman@FreeBSD.org> | 1993-12-19 00:55:01 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1993-12-19 00:55:01 +0000 |
commit | 71b67e5a560e27117fd4ff9fe76b1e67f1423f1e (patch) | |
tree | 62dff2aa17f4c31d27a9595b764f9cbc9810eb80 /sys/i386/eisa | |
parent | c7341bb860bd0d1789ca0b8bfce96c383fd7dbbc (diff) | |
download | FreeBSD-src-71b67e5a560e27117fd4ff9fe76b1e67f1423f1e.zip FreeBSD-src-71b67e5a560e27117fd4ff9fe76b1e67f1423f1e.tar.gz |
Make everything compile with -Wtraditional. Make it easier to distribute
a binary link-kit. Make all non-optional options (pagers, procfs) standard,
and update LINT to reflect new symtab requirements.
NB: -Wtraditional will henceforth be forgotten. This editing pass was
primarily intended to detect any constructions where the old code might
have been relying on traditional C semantics or syntax. These were all
fixed, and the result of fixing some of them means that -Wall is now a
realistic possibility within a few weeks.
Diffstat (limited to 'sys/i386/eisa')
-rw-r--r-- | sys/i386/eisa/aha1742.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/i386/eisa/aha1742.c b/sys/i386/eisa/aha1742.c index a1457db..991f580 100644 --- a/sys/i386/eisa/aha1742.c +++ b/sys/i386/eisa/aha1742.c @@ -14,7 +14,7 @@ * * commenced: Sun Sep 27 18:14:01 PDT 1992 * - * $Id: aha1742.c,v 1.11 1993/11/18 05:02:15 rgrimes Exp $ + * $Id: aha1742.c,v 1.12 1993/11/25 01:31:25 wollman Exp $ */ #include <sys/types.h> @@ -46,11 +46,6 @@ int Debugger(); # endif /* DDB */ # else #include "ddb.h" -#if NDDB > 0 -int Debugger(); -#else /* NDDB */ -#define Debugger() panic("should call debugger here (adaptec.c)") -#endif /* NDDB */ #endif /* netbsd */ #else /* KERNEL */ #define NAHB 1 @@ -61,7 +56,7 @@ typedef timeout_func_t timeout_t; #endif typedef unsigned long int physaddr; -extern int hz; +#include "kernel.h" #define KVTOPHYS(x) vtophys(x) @@ -360,7 +355,7 @@ ahb_send_mbox(int unit, int opcode, int target, struct ecb *ecb) } if (wait == 0) { printf("ahb%d: board not responding\n", unit); - Debugger(); + Debugger("aha1742"); } outl(port + MBOXOUT0, KVTOPHYS(ecb)); /* don't know this will work */ outb(port + ATTN, opcode | target); @@ -416,7 +411,7 @@ ahb_send_immed(int unit, int target, u_long cmd) DELAY(10); } if (wait == 0) { printf("ahb%d: board not responding\n", unit); - Debugger(); + Debugger("aha1742"); } outl(port + MBOXOUT0, cmd); /* don't know this will work */ outb(port + G2CNTRL, G2CNTRL_SET_HOST_READY); |