From owner-cvs-src@FreeBSD.ORG Wed Aug 30 22:22:46 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36E4016A511; Wed, 30 Aug 2006 22:22:46 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1093843DC1; Wed, 30 Aug 2006 22:22:06 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 003C25D41; Thu, 31 Aug 2006 02:21:58 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id D27C65CF1; Thu, 31 Aug 2006 02:21:58 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.6/8.13.6) id k7UMMOTY012370; Thu, 31 Aug 2006 02:22:24 +0400 (MSD) (envelope-from ru) Date: Thu, 31 Aug 2006 02:22:24 +0400 From: Ruslan Ermilov To: John Baldwin Message-ID: <20060830222224.GA12339@rambler-co.ru> References: <200608292036.k7TKaXBp044347@repoman.freebsd.org> <200608301320.33720.jhb@freebsd.org> <20060830205155.GB11411@rambler-co.ru> <200608301811.40837.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <200608301811.40837.jhb@freebsd.org> User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Scanned: No virus found Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org, Bruce Evans Subject: Re: cvs commit: src/sys/sys sx.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 22:22:46 -0000 --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 30, 2006 at 06:11:40PM -0400, John Baldwin wrote: > On Wednesday 30 August 2006 16:51, Ruslan Ermilov wrote: > > On Wed, Aug 30, 2006 at 01:20:32PM -0400, John Baldwin wrote: > > > On Wednesday 30 August 2006 05:37, Bruce Evans wrote: > > > > On Tue, 29 Aug 2006, John Baldwin wrote: > > > >=20 > > > > > jhb 2006-08-29 20:36:33 UTC > > > > > > > > > > FreeBSD src repository > > > > > > > > > > Modified files: > > > > > sys/sys sx.h > > > > > Log: > > > > > The _sx_assert() prototype should exist if either of INVARIANTS = or > > > > > INVARIANT_SUPPORT is defined so you can build a kernel with > > > > > INVARIANT_SUPPORT, but build a module with just INVARIANTS on. > > > >=20 [...] > No. The _sx_assert() _function_ is only #ifdef INVARIANT_SUPPORT in=20 > kern_sx.c. However, the _sx_assert() function _prototype_ is used both i= n=20 > kern_sx.c when compiling, but also by consumers of the sx_assert() macro= =20 > defined in sys/sx.h. That is, the prototype is needed for both cases, 1 = is=20 > so kern_sx.c has a prototype for the function it declares, this requires= =20 > INVARIANT_SUPPORT; 2 is for all the users of sx_assert() in the tree, whi= ch=20 > map sx_assert() to a call to _sx_assert() if INVARIANTS is defined. >=20 OK, that's right. Sorry for the noise. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE9g+gqRfpzJluFF4RAo/uAJ9cJDxVlVFFHfyadykKUEcTkQ5FogCfbfla xrA0G0UreTzkhdj08+XT0CY= =LqK9 -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--