diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c index 77fa52178930..6b670ea72a42 100644 --- a/sys/dev/atkbdc/psm.c +++ b/sys/dev/atkbdc/psm.c @@ -73,7 +73,7 @@ #include #include #include -#include +#include #include #include diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c index 6ed546e053d2..0f8110f096d9 100644 --- a/sys/dev/bktr/bktr_os.c +++ b/sys/dev/bktr/bktr_os.c @@ -71,7 +71,11 @@ #include #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include diff --git a/sys/dev/ed/if_ed_pccard.c b/sys/dev/ed/if_ed_pccard.c index 0b74a2d79788..7763fb7dbca9 100644 --- a/sys/dev/ed/if_ed_pccard.c +++ b/sys/dev/ed/if_ed_pccard.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include diff --git a/sys/dev/ncv/ncr53c500_pccard.c b/sys/dev/ncv/ncr53c500_pccard.c index ed0da2051d85..12e4f71e118f 100644 --- a/sys/dev/ncv/ncr53c500_pccard.c +++ b/sys/dev/ncv/ncr53c500_pccard.c @@ -87,7 +87,9 @@ extern struct ncv_softc *ncvdata[]; #if NCARD > 0 #include #include +#if !defined(__FreeBSD__) || __FreeBSD_version < 500014 #include +#endif #include #include diff --git a/sys/dev/nsp/nsp_pccard.c b/sys/dev/nsp/nsp_pccard.c index d4914ebe668f..d0a5b968354c 100644 --- a/sys/dev/nsp/nsp_pccard.c +++ b/sys/dev/nsp/nsp_pccard.c @@ -83,7 +83,9 @@ extern struct nsp_softc *nspdata[]; #if NCARD > 0 #include #include +#if !defined(__FreeBSD__) || __FreeBSD_version < 500014 #include +#endif #include #include diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c index 89a636887bff..60067dca19f1 100644 --- a/sys/dev/random/harvest.c +++ b/sys/dev/random/harvest.c @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index 6c9ee849034a..5a39b86e7a07 100644 --- a/sys/dev/random/randomdev.c +++ b/sys/dev/random/randomdev.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c index 34d1b90fc4e7..d50dcfaaed30 100644 --- a/sys/dev/random/yarrow.c +++ b/sys/dev/random/yarrow.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/sys/dev/stg/tmc18c30_isa.c b/sys/dev/stg/tmc18c30_isa.c index 67fb6b62e42b..6fe5523d8bca 100644 --- a/sys/dev/stg/tmc18c30_isa.c +++ b/sys/dev/stg/tmc18c30_isa.c @@ -77,7 +77,6 @@ #include #include -#include static int stgprobe(device_t devi); static int stgattach(device_t devi); diff --git a/sys/dev/stg/tmc18c30_pccard.c b/sys/dev/stg/tmc18c30_pccard.c index 574fbb27c82b..e6ceb6f821b8 100644 --- a/sys/dev/stg/tmc18c30_pccard.c +++ b/sys/dev/stg/tmc18c30_pccard.c @@ -88,7 +88,9 @@ extern struct stg_softc *stgdata[]; #if NCARD > 0 #include #include +#if !defined(__FreeBSD__) || __FreeBSD_version < 500014 #include +#endif #include #include diff --git a/sys/dev/syscons/apm/apm_saver.c b/sys/dev/syscons/apm/apm_saver.c index fa2047ff3e19..f4464ca64307 100644 --- a/sys/dev/syscons/apm/apm_saver.c +++ b/sys/dev/syscons/apm/apm_saver.c @@ -39,7 +39,7 @@ #include #include -#include +#include #include #include #include diff --git a/sys/dev/usb/udbp.c b/sys/dev/usb/udbp.c index a7bcac0b8426..15ca63ec8cdf 100644 --- a/sys/dev/usb/udbp.c +++ b/sys/dev/usb/udbp.c @@ -77,7 +77,11 @@ #include #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include #include diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c index bd420cce0850..d318f13e6e9b 100644 --- a/sys/dev/usb/ugen.c +++ b/sys/dev/usb/ugen.c @@ -56,7 +56,11 @@ #endif #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index dd2a85e9909e..1cdd455ff937 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -60,7 +60,11 @@ #endif #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include #include diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c index e0d78d303b45..9f3143ae0c42 100644 --- a/sys/dev/usb/ukbd.c +++ b/sys/dev/usb/ukbd.c @@ -51,7 +51,11 @@ #include #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index 3cbfa0d3e70c..c8d43460e4a8 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -66,7 +66,11 @@ #include #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include #include diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 7096fa86c9d1..16327823f210 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -51,7 +51,11 @@ #include #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c index 8dd4c6300dff..4cb4dffbcd99 100644 --- a/sys/dev/usb/urio.c +++ b/sys/dev/usb/urio.c @@ -60,7 +60,11 @@ #include #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 0767649e58f9..46f1eb1fdfcc 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -60,7 +60,11 @@ #endif #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include diff --git a/sys/dev/usb/uscanner.c b/sys/dev/usb/uscanner.c index b89152f12cad..18b7aebf9148 100644 --- a/sys/dev/usb/uscanner.c +++ b/sys/dev/usb/uscanner.c @@ -55,7 +55,11 @@ #endif #include #include +#if __FreeBSD_version >= 500014 +#include +#else #include +#endif #include #include #include diff --git a/sys/dev/xe/if_xe.c b/sys/dev/xe/if_xe.c index 0aaed442187b..598ceb389680 100644 --- a/sys/dev/xe/if_xe.c +++ b/sys/dev/xe/if_xe.c @@ -113,7 +113,6 @@ #include #include #include -#include #include #include #include diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index d5c67b554372..adf26f0fc3cc 100644 --- a/sys/i386/apm/apm.c +++ b/sys/i386/apm/apm.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index d5c67b554372..adf26f0fc3cc 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/sys/isa/psm.c b/sys/isa/psm.c index 77fa52178930..6b670ea72a42 100644 --- a/sys/isa/psm.c +++ b/sys/isa/psm.c @@ -73,7 +73,7 @@ #include #include #include -#include +#include #include #include diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 56e818a677a7..1a89d3248896 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 555cb6803d43..ec3f7f478dcb 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 3b944dd9cdec..a892cbb7bbf3 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -59,7 +59,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/sys/modules/syscons/apm/apm_saver.c b/sys/modules/syscons/apm/apm_saver.c index fa2047ff3e19..f4464ca64307 100644 --- a/sys/modules/syscons/apm/apm_saver.c +++ b/sys/modules/syscons/apm/apm_saver.c @@ -39,7 +39,7 @@ #include #include -#include +#include #include #include #include diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h index de3dfb9058ee..49e3f3587765 100644 --- a/sys/net/bpfdesc.h +++ b/sys/net/bpfdesc.h @@ -43,7 +43,7 @@ #ifndef _NET_BPFDESC_H_ #define _NET_BPFDESC_H_ -#include +#include /* * Descriptor associated with each open bpf file. diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index 27f7af2b096b..62f0f7385394 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index 40cb7d8a0311..c610a8bb6c8e 100644 --- a/sys/pccard/pccard_nbk.c +++ b/sys/pccard/pccard_nbk.c @@ -54,7 +54,6 @@ #include #include #include -#include #include #include diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index 4cc58cb33427..df546881ff83 100644 --- a/sys/pccard/pcic.c +++ b/sys/pccard/pcic.c @@ -35,8 +35,6 @@ #include #include #include -#include - #include #include diff --git a/sys/pccard/slot.h b/sys/pccard/slot.h index 6221b4c2ae1e..edd140004b73 100644 --- a/sys/pccard/slot.h +++ b/sys/pccard/slot.h @@ -47,6 +47,8 @@ #include #include +#include + /* * Controller data - Specific to each slot controller. */ diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h index 7dec8286246e..2a1f3d4cb359 100644 --- a/sys/sys/pipe.h +++ b/sys/sys/pipe.h @@ -26,7 +26,7 @@ #ifndef _KERNEL #include /* for struct timespec */ -#include /* for struct selinfo */ +#include /* for struct selinfo */ #include /* for vm_page_t */ #include /* for PAGE_SIZE */ #endif diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index d363c4db36d3..09014182bd3e 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -38,7 +38,7 @@ #define _SYS_SOCKETVAR_H_ #include /* for TAILQ macros */ -#include /* for struct selinfo */ +#include /* for struct selinfo */ /* * Kernel structure per socket. diff --git a/sys/sys/tty.h b/sys/sys/tty.h index c6f405606257..43a515931dd3 100644 --- a/sys/sys/tty.h +++ b/sys/sys/tty.h @@ -44,7 +44,7 @@ #include #include -#include /* For struct selinfo. */ +#include /* * Clists are character lists, which is a variable length linked list diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 2ab6f3f7f523..7a463e20dc2e 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include