diff options
author | peter <peter@FreeBSD.org> | 2001-01-17 00:47:46 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-01-17 00:47:46 +0000 |
commit | 136bb589b55a34b9c00424c70b0776e4322018f7 (patch) | |
tree | d884ac45aba8c81796d3ca6278cc751dcca06d32 /sys/dev | |
parent | 9cc5c3f0428021956a4a8d5b95d31e2c4d18911d (diff) | |
download | FreeBSD-src-136bb589b55a34b9c00424c70b0776e4322018f7.zip FreeBSD-src-136bb589b55a34b9c00424c70b0776e4322018f7.tar.gz |
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.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ar/if_ar_pci.c | 5 | ||||
-rw-r--r-- | sys/dev/cy/cy_pci.c | 5 | ||||
-rw-r--r-- | sys/dev/sr/if_sr_pci.c | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/sys/dev/ar/if_ar_pci.c b/sys/dev/ar/if_ar_pci.c index 6fa1d52..45482eb 100644 --- a/sys/dev/ar/if_ar_pci.c +++ b/sys/dev/ar/if_ar_pci.c @@ -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 diff --git a/sys/dev/cy/cy_pci.c b/sys/dev/cy/cy_pci.c index f7e2414..fddea78 100644 --- a/sys/dev/cy/cy_pci.c +++ b/sys/dev/cy/cy_pci.c @@ -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 @@ fail: /* XXX should release any allocated virtual memory */ return; } +#endif diff --git a/sys/dev/sr/if_sr_pci.c b/sys/dev/sr/if_sr_pci.c index 1bf8177..b8ac2cc 100644 --- a/sys/dev/sr/if_sr_pci.c +++ b/sys/dev/sr/if_sr_pci.c @@ -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 |