The stallion.c pci driver is broken. Emit a warning if compiling LINT.
This commit is contained in:
parent
a1c9b755a7
commit
7f12c0b5df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71140
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user