Just 'warn' the user that they are mixing dedicated drivers and generic
code if the option 'LINT_PCCARD_HACK' is specified (which should only be used in LINT). Demanded by: bde
This commit is contained in:
parent
2448afb887
commit
1893017e4e
@ -47,14 +47,18 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* $Id: if_ze.c,v 1.35 1996/12/21 17:53:38 nate Exp $
|
||||
* $Id: if_ze.c,v 1.36 1996/12/23 01:24:44 jkh Exp $
|
||||
*/
|
||||
|
||||
/* XXX - Don't mix different PCCARD support code */
|
||||
#include "pcic.h"
|
||||
#include "crd.h"
|
||||
#if NCRD > 0 || NPCIC > 0
|
||||
#ifndef LINT_PCCARD_HACK
|
||||
#error "Dedicated PCMCIA drivers and generic PCMCIA support can't be mixed"
|
||||
#else
|
||||
#warning "Dedicated PCMCIA drivers and generic PCMCIA support can't be mixed"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "ze.h"
|
||||
|
@ -34,7 +34,7 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $
|
||||
* $Id: if_zp.c,v 1.29 1996/12/21 17:53:39 nate Exp $
|
||||
* $Id: if_zp.c,v 1.30 1996/12/23 01:24:44 jkh Exp $
|
||||
*/
|
||||
/*-
|
||||
* TODO:
|
||||
@ -104,7 +104,11 @@
|
||||
#include "pcic.h"
|
||||
#include "crd.h"
|
||||
#if NCRD > 0 || NPCIC > 0
|
||||
#ifndef LINT_PCCARD_HACK
|
||||
#error "Dedicated PCMCIA drivers and generic PCMCIA support can't be mixed"
|
||||
#else
|
||||
#warning "Dedicated PCMCIA drivers and generic PCMCIA support can't be mixed"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "zp.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user