summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-02-25 07:12:17 +0000
committerbde <bde@FreeBSD.org>1998-02-25 07:12:17 +0000
commitdd04474345429a111f490c7982f1a882e64af161 (patch)
tree821dece15ec149537171d63b6cfa5f010f4bde19 /sys/pci
parentb58c846db625ae64e42aece176c9f0c3b4de6083 (diff)
downloadFreeBSD-src-dd04474345429a111f490c7982f1a882e64af161.zip
FreeBSD-src-dd04474345429a111f490c7982f1a882e64af161.tar.gz
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).
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/brooktree848.c7
1 files changed, 3 insertions, 4 deletions
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 */
{ "<none>", /* the 'name' */
OpenPOWER on IntegriCloud