From dd04474345429a111f490c7982f1a882e64af161 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 25 Feb 1998 07:12:17 +0000 Subject: Added missing #include of "opt_devfs.h". Fixed pedantic semantics errors (in ANSI C, static arrays must have a size, and static objects should be consistently declared as static unless you know more than anyone should have to know about the linkage rules). --- sys/pci/brooktree848.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/pci') diff --git a/sys/pci/brooktree848.c b/sys/pci/brooktree848.c index 3f0700b..6c5d016 100644 --- a/sys/pci/brooktree848.c +++ b/sys/pci/brooktree848.c @@ -222,6 +222,7 @@ #ifdef __FreeBSD__ #include "bktr.h" +#include "opt_devfs.h" #include "pci.h" #endif /* __FreeBSD__ */ @@ -656,8 +657,6 @@ static u_long status_sum = 0; /* * misc. support routines. */ -static const struct CARDTYPE cards[]; -static const struct TUNER tuners[]; static int signCard( bktr_ptr_t bktr, int offset, int count, u_char* sig ); static void probeCard( bktr_ptr_t bktr, int verbose ); @@ -3748,7 +3747,7 @@ readEEProm( bktr_ptr_t bktr, int offset, int count, u_char *data ) * Note: * these entried MUST be kept in the order defined by the CARD_XXX defines! */ -const struct CARDTYPE cards[] = { +static const struct CARDTYPE cards[] = { /* CARD_UNKNOWN */ { "Unknown", /* the 'name' */ @@ -3841,7 +3840,7 @@ struct TUNER { u_char bandAddrs[ 3 ]; }; */ -const struct TUNER tuners[] = { +static const struct TUNER tuners[] = { /* XXX FIXME: fill in the band-switch crosspoints */ /* NO_TUNER */ { "", /* the 'name' */ -- cgit v1.1