summaryrefslogtreecommitdiffstats
path: root/sys/dev/lmc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-01-17 01:08:50 +0000
committerpeter <peter@FreeBSD.org>2001-01-17 01:08:50 +0000
commit69aff11b5db450d01fcdd725b06997b5064c6461 (patch)
tree083a1655da30b9412b2e11ce20bb8756bc90c193 /sys/dev/lmc
parent136bb589b55a34b9c00424c70b0776e4322018f7 (diff)
downloadFreeBSD-src-69aff11b5db450d01fcdd725b06997b5064c6461.zip
FreeBSD-src-69aff11b5db450d01fcdd725b06997b5064c6461.tar.gz
Minor tweaks to get these to stop breaking LINT. They still dont work
and emit warnings, but we need to get the test coverage elsewhere.
Diffstat (limited to 'sys/dev/lmc')
-rw-r--r--sys/dev/lmc/if_lmc.c6
-rw-r--r--sys/dev/lmc/if_lmc_fbsd3.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c
index a04ef28..2e13f16 100644
--- a/sys/dev/lmc/if_lmc.c
+++ b/sys/dev/lmc/if_lmc.c
@@ -28,6 +28,10 @@
* $Id: if_lmc.c,v 1.9 1999/02/19 15:08:42 explorer Exp $
*/
+#ifdef COMPILING_LINT
+#warning "The lmc driver is broken and is not compiled with LINT"
+#else
+
char lmc_version[] = "BSD 1.1";
#include "opt_netgraph.h"
@@ -1555,3 +1559,5 @@ ng_lmc_init(void *ignored)
#include "dev/lmc/if_lmc_fbsd3.c"
+
+#endif
diff --git a/sys/dev/lmc/if_lmc_fbsd3.c b/sys/dev/lmc/if_lmc_fbsd3.c
index f6f9bf9..74d2226 100644
--- a/sys/dev/lmc/if_lmc_fbsd3.c
+++ b/sys/dev/lmc/if_lmc_fbsd3.c
@@ -36,6 +36,10 @@
#define PCI_GETBUSDEVINFO(sc) (sc)->lmc_pci_busno = (config_id->bus), \
(sc)->lmc_pci_devno = (config_id->slot)
+#ifndef COMPAT_OLDPCI
+#error "The lmc device requires the old pci compatibility shims"
+#endif
+
#if 0
static void lmc_shutdown(int howto, void * arg);
#endif
OpenPOWER on IntegriCloud