Special case for compiling LINT - just give a warning and continue on.

At least we have a chance at getting test compile coverage for the rest
of the kernel now.
This commit is contained in:
peter 2001-01-17 00:47:46 +00:00
parent e439bec2cf
commit 7fcc516524
7 changed files with 35 additions and 0 deletions

View File

@ -29,6 +29,10 @@
* $FreeBSD$
*/
#ifdef COMPILING_LINT
#warning "The ar pci driver is broken and is not compiled with LINT"
#else
#include "ar.h"
#include <sys/param.h>
@ -119,3 +123,4 @@ ar_pci_attach(pcici_t config_id, int unit)
return;
}
}
#endif

View File

@ -27,6 +27,10 @@
* $FreeBSD$
*/
#ifdef COMPILING_LINT
#warning "The cy pci driver is broken and is not compiled with LINT"
#else
/*
* Cyclades Y PCI serial interface driver
*/
@ -157,3 +161,4 @@ cy_attach(config_id, unit)
/* XXX should release any allocated virtual memory */
return;
}
#endif

View File

@ -30,6 +30,10 @@
* $FreeBSD$
*/
#ifdef COMPILING_LINT
#warning "The sr pci driver is broken and is not compiled with LINT"
#else
#include "sr.h"
#include <sys/param.h>
@ -131,3 +135,4 @@ sr_pci_attach(pcici_t config_id, int unit)
return;
}
}
#endif

View File

@ -27,6 +27,10 @@
* $FreeBSD$
*/
#ifdef COMPILING_LINT
#warning "The cy pci driver is broken and is not compiled with LINT"
#else
/*
* Cyclades Y PCI serial interface driver
*/
@ -157,3 +161,4 @@ cy_attach(config_id, unit)
/* XXX should release any allocated virtual memory */
return;
}
#endif

View File

@ -29,6 +29,10 @@
* $FreeBSD$
*/
#ifdef COMPILING_LINT
#warning "The ar pci driver is broken and is not compiled with LINT"
#else
#include "ar.h"
#include <sys/param.h>
@ -119,3 +123,4 @@ ar_pci_attach(pcici_t config_id, int unit)
return;
}
}
#endif

View File

@ -30,6 +30,10 @@
* $FreeBSD$
*/
#ifdef COMPILING_LINT
#warning "The sr pci driver is broken and is not compiled with LINT"
#else
#include "sr.h"
#include <sys/param.h>
@ -131,3 +135,4 @@ sr_pci_attach(pcici_t config_id, int unit)
return;
}
}
#endif

View File

@ -145,6 +145,10 @@
future version of this driver.
*/
#ifdef COMPILING_LINT
#warning "The meteor driver is broken and is not compiled with LINT"
#else
#include "meteor.h"
#include "opt_meteor.h"
@ -2120,3 +2124,4 @@ meteor_mmap(dev_t dev, vm_offset_t offset, int nprot)
return i386_btop(vtophys(mtr->bigbuf) + offset);
}
#endif