From owner-freebsd-smp Sun Apr 22 22: 9:53 2001 Delivered-To: freebsd-smp@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 4478837B423 for ; Sun, 22 Apr 2001 22:09:49 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id PAA27843; Mon, 23 Apr 2001 15:09:29 +1000 Date: Mon, 23 Apr 2001 15:07:07 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Mark Murray Cc: smp@FreeBSD.ORG Subject: Re: Kernel include file cleanup take #3. In-Reply-To: <200104221509.f3MF9iw41961@gratis.grondar.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 22 Apr 2001, Mark Murray wrote: > The aim of this patch is to > > 1) Reduce the number of "#include " and "#include > " in other include files. > > 2) Reduce the dependancy of .c files on lockmgr by making lockmgr > a subinclude of sys/lock.h (lockmgr is deprecated and is being > removed slowly). > > Please review. > > Thanks! > > http://people.freebsd.org/~markm/patches/sys.SYS_MUTEX.diff.1 I'm almost (:-) happy with this version. The includes of in and are too hard to move without moving the inline functions. was already a subinclude of , and _SYS_LOCKMGR_H_ is still misspelled (was missing SYS_ and MGR, now missing SYS_ ...). You actually made a subinclude of other headers that need it, and one that doesn't ( doesn't need it directly, but it includes which does). doesn't need it any more (but *.c might depend on it being there). Some of the includes of it are commented on too verbosely. Some of the new includes seem to be a bit more disordered than necessary. When inserting in unsorted include lists, I normally insert just before the first order reversal (not counting param.h or systm.h). Please change the copyright owner to yourself. FreeBSD, Inc. still doesn't exist in a form suitable for holding copyrights. I'm not sure if the names for the new types headers are right. Perhaps they should have a leading underscore to inhibit direct inclusion, or not have the "_types" suffix, to make them less verbose and not hint that they are limited to types. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message