summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-01-17 01:21:08 +0000
committerpeter <peter@FreeBSD.org>2001-01-17 01:21:08 +0000
commit8f1c684897c1811f47df2e7a6a837d3857243671 (patch)
tree0511b418bc372be93fa078b6b923c7f2129b24ac /sys/i386
parent6bf7e0e70ebef2fcc3f2a67f8fb3caa6dccd4655 (diff)
downloadFreeBSD-src-8f1c684897c1811f47df2e7a6a837d3857243671.zip
FreeBSD-src-8f1c684897c1811f47df2e7a6a837d3857243671.tar.gz
The stallion.c pci driver is broken. Emit a warning if compiling LINT.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/stallion.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/isa/stallion.c b/sys/i386/isa/stallion.c
index 07528a0..2d35463 100644
--- a/sys/i386/isa/stallion.c
+++ b/sys/i386/isa/stallion.c
@@ -55,7 +55,15 @@
#include <machine/comstats.h>
#include "pci.h"
+#ifdef COMPILING_LINT
+#warning "The stallion pci device is broken and not compiled with LINT"
+#undef NPCI
+#define NPCI 0
+#endif
#if NPCI > 0
+#ifndef COMPAT_OLDPCI
+#error "The stallion pci driver requires the old pci compatibility shims"
+#endif
#include <pci/pcivar.h>
#include <pci/pcireg.h>
#endif
OpenPOWER on IntegriCloud