From 1cd52ec333dcaa93fed3408a4d473f1192c8aba8 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 5 Dec 1997 19:55:52 +0000 Subject: [PATCH] Don't include in headers when only `struct simplelock' is required. Fixed everything that depended on the pollution. --- sys/compat/linux/linux_file.c | 3 ++- sys/fs/deadfs/dead_vnops.c | 3 ++- sys/fs/fifofs/fifo_vnops.c | 3 ++- sys/fs/procfs/procfs_vnops.c | 3 ++- sys/gnu/ext2fs/ext2_balloc.c | 1 + sys/gnu/ext2fs/ext2_ihash.c | 3 ++- sys/gnu/ext2fs/ext2_inode_cnv.c | 1 + sys/gnu/ext2fs/ext2_subr.c | 1 + sys/gnu/fs/ext2fs/ext2_balloc.c | 1 + sys/gnu/fs/ext2fs/ext2_inode_cnv.c | 1 + sys/gnu/fs/ext2fs/ext2_subr.c | 1 + sys/i386/ibcs2/ibcs2_misc.c | 3 ++- sys/i386/linux/imgact_linux.c | 3 ++- sys/i386/linux/linux_file.c | 3 ++- sys/kern/kern_ktrace.c | 3 ++- sys/kern/kern_lockf.c | 3 ++- sys/kern/tty_tty.c | 3 ++- sys/kern/vfs_bio.c | 3 ++- sys/kern/vfs_default.c | 1 + sys/miscfs/deadfs/dead_vnops.c | 3 ++- sys/miscfs/devfs/devfs_vnops.c | 3 ++- sys/miscfs/fifofs/fifo_vnops.c | 3 ++- sys/miscfs/procfs/procfs_vnops.c | 3 ++- sys/sys/vnode.h | 5 +++-- sys/ufs/ffs/ffs_balloc.c | 3 ++- sys/ufs/ffs/ffs_subr.c | 3 ++- sys/ufs/ufs/ufs_ihash.c | 3 ++- sys/vm/vm_zone.c | 3 ++- sys/vm/vm_zone.h | 5 ++--- 29 files changed, 52 insertions(+), 25 deletions(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 0cef9966077e..b4859493bc3f 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_file.c,v 1.14 1997/04/06 10:10:50 dfr Exp $ + * $Id: linux_file.c,v 1.15 1997/11/06 19:28:54 phk Exp $ */ #include @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/fs/deadfs/dead_vnops.c b/sys/fs/deadfs/dead_vnops.c index 6888f35d6aa9..99f58a691a04 100644 --- a/sys/fs/deadfs/dead_vnops.c +++ b/sys/fs/deadfs/dead_vnops.c @@ -31,12 +31,13 @@ * SUCH DAMAGE. * * @(#)dead_vnops.c 8.1 (Berkeley) 6/10/93 - * $Id: dead_vnops.c,v 1.20 1997/10/16 21:59:55 phk Exp $ + * $Id: dead_vnops.c,v 1.21 1997/10/26 20:55:10 phk Exp $ */ #include #include #include +#include #include #include diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c index 918cb7e9ef1a..64b38affc4ee 100644 --- a/sys/fs/fifofs/fifo_vnops.c +++ b/sys/fs/fifofs/fifo_vnops.c @@ -31,12 +31,13 @@ * SUCH DAMAGE. * * @(#)fifo_vnops.c 8.10 (Berkeley) 5/27/95 - * $Id: fifo_vnops.c,v 1.36 1997/10/27 13:33:39 bde Exp $ + * $Id: fifo_vnops.c,v 1.37 1997/10/27 15:33:04 bde Exp $ */ #include #include #include +#include #include #include #include diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index b9fc5b2fedd5..284242f2f1d0 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.18 (Berkeley) 5/21/95 * - * $Id: procfs_vnops.c,v 1.41 1997/10/27 15:39:01 bde Exp $ + * $Id: procfs_vnops.c,v 1.42 1997/11/07 08:53:15 phk Exp $ */ /* @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/gnu/ext2fs/ext2_balloc.c b/sys/gnu/ext2fs/ext2_balloc.c index f94c015a46e8..3d871239956c 100644 --- a/sys/gnu/ext2fs/ext2_balloc.c +++ b/sys/gnu/ext2fs/ext2_balloc.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include diff --git a/sys/gnu/ext2fs/ext2_ihash.c b/sys/gnu/ext2fs/ext2_ihash.c index a34e8c8a360c..644f47a9dfc1 100644 --- a/sys/gnu/ext2fs/ext2_ihash.c +++ b/sys/gnu/ext2fs/ext2_ihash.c @@ -31,11 +31,12 @@ * SUCH DAMAGE. * * @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95 - * $Id: ufs_ihash.c,v 1.11 1997/10/14 18:51:07 phk Exp $ + * $Id: ufs_ihash.c,v 1.12 1997/10/15 07:32:45 bde Exp $ */ #include #include +#include #include #include #include diff --git a/sys/gnu/ext2fs/ext2_inode_cnv.c b/sys/gnu/ext2fs/ext2_inode_cnv.c index 238772f6dd4d..42ebd2b9bd64 100644 --- a/sys/gnu/ext2fs/ext2_inode_cnv.c +++ b/sys/gnu/ext2fs/ext2_inode_cnv.c @@ -26,6 +26,7 @@ */ #include #include +#include #include #include diff --git a/sys/gnu/ext2fs/ext2_subr.c b/sys/gnu/ext2fs/ext2_subr.c index 94d8d532a67a..a70e445b0ee4 100644 --- a/sys/gnu/ext2fs/ext2_subr.c +++ b/sys/gnu/ext2fs/ext2_subr.c @@ -43,6 +43,7 @@ #include #include +#include #include #include #include diff --git a/sys/gnu/fs/ext2fs/ext2_balloc.c b/sys/gnu/fs/ext2fs/ext2_balloc.c index f94c015a46e8..3d871239956c 100644 --- a/sys/gnu/fs/ext2fs/ext2_balloc.c +++ b/sys/gnu/fs/ext2fs/ext2_balloc.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include diff --git a/sys/gnu/fs/ext2fs/ext2_inode_cnv.c b/sys/gnu/fs/ext2fs/ext2_inode_cnv.c index 238772f6dd4d..42ebd2b9bd64 100644 --- a/sys/gnu/fs/ext2fs/ext2_inode_cnv.c +++ b/sys/gnu/fs/ext2fs/ext2_inode_cnv.c @@ -26,6 +26,7 @@ */ #include #include +#include #include #include diff --git a/sys/gnu/fs/ext2fs/ext2_subr.c b/sys/gnu/fs/ext2fs/ext2_subr.c index 94d8d532a67a..a70e445b0ee4 100644 --- a/sys/gnu/fs/ext2fs/ext2_subr.c +++ b/sys/gnu/fs/ext2fs/ext2_subr.c @@ -43,6 +43,7 @@ #include #include +#include #include #include #include diff --git a/sys/i386/ibcs2/ibcs2_misc.c b/sys/i386/ibcs2/ibcs2_misc.c index dab0855eb638..1a018257fa71 100644 --- a/sys/i386/ibcs2/ibcs2_misc.c +++ b/sys/i386/ibcs2/ibcs2_misc.c @@ -45,7 +45,7 @@ * * @(#)sun_misc.c 8.1 (Berkeley) 6/18/93 * - * $Id: ibcs2_misc.c,v 1.23 1997/08/25 21:56:23 bde Exp $ + * $Id: ibcs2_misc.c,v 1.24 1997/11/06 19:28:33 phk Exp $ */ /* @@ -60,6 +60,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/i386/linux/imgact_linux.c b/sys/i386/linux/imgact_linux.c index 2d73f15db73e..d52a556e7f7e 100644 --- a/sys/i386/linux/imgact_linux.c +++ b/sys/i386/linux/imgact_linux.c @@ -28,7 +28,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: imgact_linux.c,v 1.23 1997/07/20 14:21:36 bde Exp $ + * $Id: imgact_linux.c,v 1.24 1997/07/20 16:05:50 bde Exp $ */ #include @@ -39,6 +39,7 @@ #include #include #include +#include #include #include diff --git a/sys/i386/linux/linux_file.c b/sys/i386/linux/linux_file.c index 0cef9966077e..b4859493bc3f 100644 --- a/sys/i386/linux/linux_file.c +++ b/sys/i386/linux/linux_file.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_file.c,v 1.14 1997/04/06 10:10:50 dfr Exp $ + * $Id: linux_file.c,v 1.15 1997/11/06 19:28:54 phk Exp $ */ #include @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index d28c630fea0e..526bee3ace6d 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93 - * $Id: kern_ktrace.c,v 1.20 1997/10/12 20:23:48 phk Exp $ + * $Id: kern_ktrace.c,v 1.21 1997/11/06 19:29:10 phk Exp $ */ #include "opt_ktrace.h" @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c index a8f1a34c45bf..9b764e42519e 100644 --- a/sys/kern/kern_lockf.c +++ b/sys/kern/kern_lockf.c @@ -34,11 +34,12 @@ * SUCH DAMAGE. * * @(#)ufs_lockf.c 8.3 (Berkeley) 1/6/94 - * $Id: kern_lockf.c,v 1.15 1997/10/11 18:31:23 phk Exp $ + * $Id: kern_lockf.c,v 1.16 1997/10/12 20:23:49 phk Exp $ */ #include #include +#include #include #include #include diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c index 67e7a2aa4628..b4791ff2028e 100644 --- a/sys/kern/tty_tty.c +++ b/sys/kern/tty_tty.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tty_tty.c 8.2 (Berkeley) 9/23/93 - * $Id: tty_tty.c,v 1.19 1997/09/16 11:43:35 bde Exp $ + * $Id: tty_tty.c,v 1.20 1997/11/18 12:59:09 bde Exp $ */ /* @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 2214fb8e7055..97e4cecfad60 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -18,7 +18,7 @@ * 5. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: vfs_bio.c,v 1.136 1997/12/01 19:04:00 dyson Exp $ + * $Id: vfs_bio.c,v 1.137 1997/12/02 21:06:45 phk Exp $ */ /* @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index fbc121e13976..adebcc70603c 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/miscfs/deadfs/dead_vnops.c b/sys/miscfs/deadfs/dead_vnops.c index 6888f35d6aa9..99f58a691a04 100644 --- a/sys/miscfs/deadfs/dead_vnops.c +++ b/sys/miscfs/deadfs/dead_vnops.c @@ -31,12 +31,13 @@ * SUCH DAMAGE. * * @(#)dead_vnops.c 8.1 (Berkeley) 6/10/93 - * $Id: dead_vnops.c,v 1.20 1997/10/16 21:59:55 phk Exp $ + * $Id: dead_vnops.c,v 1.21 1997/10/26 20:55:10 phk Exp $ */ #include #include #include +#include #include #include diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index 8e5f4c4d1551..dba8955975b3 100644 --- a/sys/miscfs/devfs/devfs_vnops.c +++ b/sys/miscfs/devfs/devfs_vnops.c @@ -1,7 +1,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.48 1997/10/27 13:33:37 bde Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.49 1997/11/08 19:02:28 julian Exp $ * * symlinks can wait 'til later. */ @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c index 918cb7e9ef1a..64b38affc4ee 100644 --- a/sys/miscfs/fifofs/fifo_vnops.c +++ b/sys/miscfs/fifofs/fifo_vnops.c @@ -31,12 +31,13 @@ * SUCH DAMAGE. * * @(#)fifo_vnops.c 8.10 (Berkeley) 5/27/95 - * $Id: fifo_vnops.c,v 1.36 1997/10/27 13:33:39 bde Exp $ + * $Id: fifo_vnops.c,v 1.37 1997/10/27 15:33:04 bde Exp $ */ #include #include #include +#include #include #include #include diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index b9fc5b2fedd5..284242f2f1d0 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.18 (Berkeley) 5/21/95 * - * $Id: procfs_vnops.c,v 1.41 1997/10/27 15:39:01 bde Exp $ + * $Id: procfs_vnops.c,v 1.42 1997/11/07 08:53:15 phk Exp $ */ /* @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index 254068f87137..08be46669723 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -31,15 +31,16 @@ * SUCH DAMAGE. * * @(#)vnode.h 8.7 (Berkeley) 2/4/94 - * $Id: vnode.h,v 1.56 1997/11/18 09:26:50 bde Exp $ + * $Id: vnode.h,v 1.57 1997/11/22 08:35:43 bde Exp $ */ #ifndef _SYS_VNODE_H_ #define _SYS_VNODE_H_ -#include #include +#include + /* * The vnode is the focus of all file activity in UNIX. There is a * unique vnode allocated for each active file, each current directory, diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c index 3ad0bda67d49..d66d48f8014c 100644 --- a/sys/ufs/ffs/ffs_balloc.c +++ b/sys/ufs/ffs/ffs_balloc.c @@ -31,12 +31,13 @@ * SUCH DAMAGE. * * @(#)ffs_balloc.c 8.8 (Berkeley) 6/16/95 - * $Id: ffs_balloc.c,v 1.14 1997/04/10 13:17:09 bde Exp $ + * $Id: ffs_balloc.c,v 1.15 1997/08/02 14:33:18 bde Exp $ */ #include #include #include +#include #include #include diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c index 90ff5c1642a4..42ae75681880 100644 --- a/sys/ufs/ffs/ffs_subr.c +++ b/sys/ufs/ffs/ffs_subr.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_subr.c 8.5 (Berkeley) 3/21/95 - * $Id: ffs_subr.c,v 1.14 1997/11/18 15:10:38 bde Exp $ + * $Id: ffs_subr.c,v 1.15 1997/11/22 08:35:46 bde Exp $ */ #include @@ -43,6 +43,7 @@ #include "opt_ddb.h" #include +#include #include #include #include diff --git a/sys/ufs/ufs/ufs_ihash.c b/sys/ufs/ufs/ufs_ihash.c index a34e8c8a360c..644f47a9dfc1 100644 --- a/sys/ufs/ufs/ufs_ihash.c +++ b/sys/ufs/ufs/ufs_ihash.c @@ -31,11 +31,12 @@ * SUCH DAMAGE. * * @(#)ufs_ihash.c 8.7 (Berkeley) 5/17/95 - * $Id: ufs_ihash.c,v 1.11 1997/10/14 18:51:07 phk Exp $ + * $Id: ufs_ihash.c,v 1.12 1997/10/15 07:32:45 bde Exp $ */ #include #include +#include #include #include #include diff --git a/sys/vm/vm_zone.c b/sys/vm/vm_zone.c index 94eacc242fe1..1bf973210a9f 100644 --- a/sys/vm/vm_zone.c +++ b/sys/vm/vm_zone.c @@ -18,12 +18,13 @@ * 5. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: vm_zone.c,v 1.9 1997/10/11 18:31:40 phk Exp $ + * $Id: vm_zone.c,v 1.10 1997/10/12 20:26:33 phk Exp $ */ #include #include #include +#include #include #include diff --git a/sys/vm/vm_zone.h b/sys/vm/vm_zone.h index 4506247b63e8..58d29bf15f8c 100644 --- a/sys/vm/vm_zone.h +++ b/sys/vm/vm_zone.h @@ -18,7 +18,7 @@ * 5. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: vm_zone.h,v 1.6 1997/09/21 04:24:27 dyson Exp $ + * $Id: vm_zone.h,v 1.7 1997/09/21 11:41:12 peter Exp $ */ #if !defined(_SYS_ZONE_H) @@ -28,8 +28,7 @@ #define ZONE_INTERRUPT 1 /* Use this if you need to allocate at int time */ #define ZONE_BOOT 16 /* This is an internal flag used by zbootinit */ -#include -#include +#include typedef struct vm_zone { struct simplelock zlock; /* lock for data structure */