1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

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.
This commit is contained in:
Peter Wemm 2001-01-17 01:08:50 +00:00
parent 8c2956e18d
commit b348bd9392
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71136
6 changed files with 31 additions and 0 deletions

View File

@ -35,6 +35,10 @@
*
*/
#ifdef COMPILING_LINT
#warning "The eni driver is broken and is not compiled with LINT"
#else
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
@ -62,6 +66,10 @@
__RCSID("@(#) $FreeBSD$");
#endif
#ifndef COMPAT_OLDPCI
#error "The eni device requires the old pci compatibility shims"
#endif
/*
* Typedef local functions
*/
@ -678,3 +686,4 @@ eni_pci_shutdown ( eup, howto )
}
#endif /* BSD < 199506 */
#endif

View File

@ -442,7 +442,9 @@ struct mbd {
*/
struct eni_unit {
Cmn_unit eu_cmn; /* Common unit stuff */
#ifdef COMPAT_OLDPCI
pcici_t eu_pcitag; /* PCI tag */
#endif
Eni_mem eu_base; /* Adapter memory base */
Eni_mem eu_ram; /* Adapter RAM */
u_long eu_ramsize;

View File

@ -27,6 +27,10 @@
*
*/
#ifdef COMPILING_LINT
#warning "The fore pci driver is broken and is not compiled with LINT"
#else
/*
* FORE Systems 200-Series Adapter Support
* ---------------------------------------
@ -77,6 +81,9 @@ static void fore_pci_shutdown __P((void *, int));
static void fore_unattach __P((Fore_unit *));
static void fore_reset __P((Fore_unit *));
#ifndef COMPAT_OLDPCI
#error "The fore device requires the old pci compatibility shims"
#endif
/*
* Local variables
@ -632,3 +639,4 @@ fore_mod(lkmtp, cmd, ver)
#endif /* ATM_LINKED */
#endif

View File

@ -166,7 +166,9 @@ struct fore_unit {
Fore_reg *fu_ctlreg; /* Device control register */
Fore_reg *fu_imask; /* Interrupt mask register */
Fore_reg *fu_psr; /* PCI specific register */
#ifdef COMPAT_OLDPCI
pcici_t fu_pcitag; /* PCI tag */
#endif
Fore_mem *fu_ram; /* Device RAM */
u_int fu_ramsize; /* Size of device RAM */
Mon960 *fu_mon; /* Monitor program interface */

View File

@ -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

View File

@ -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