From owner-svn-src-all@FreeBSD.ORG Mon Dec 21 11:05:41 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F8F11065670; Mon, 21 Dec 2009 11:05:41 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id EE6CC8FC13; Mon, 21 Dec 2009 11:05:40 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 75CF86D41B; Mon, 21 Dec 2009 11:05:39 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 1B6D684530; Mon, 21 Dec 2009 12:05:39 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Doug Barton References: <200912161717.nBGHHeQZ005541@svn.freebsd.org> <200912161541.53834.jhb@freebsd.org> <868wd0cyjd.fsf@ds4.des.no> <4B2C127A.8060509@FreeBSD.org> Date: Mon, 21 Dec 2009 12:05:39 +0100 In-Reply-To: <4B2C127A.8060509@FreeBSD.org> (Doug Barton's message of "Fri, 18 Dec 2009 15:38:34 -0800") Message-ID: <86aaxcsi2k.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Warner Losh , John Baldwin Subject: Re: svn commit: r200606 - in head/sys: compat/freebsd32 sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2009 11:05:41 -0000 Doug Barton writes: > Trying to look at this from the user perspective, it's kind of silly > that if what I want is COMPAT5 I also need to add COMPAT. > > I don't know the issues in the code so I don't know what the solution > should be on the back end, but on the front end what needs to work is > that I specify the compat level I want in my kernel config, then the > code does what's necessary to make that work. So basically #ifdef FREEBSD_COMPAT4 #ifndef FREEBSD_COMPAT5 #define FREEBSD_COMPAT5 #endif #endif #ifdef FREEBSD_COMPAT5 #ifndef FREEBSD_COMPAT6 #define FREEBSD_COMPAT6 #endif #endif #ifdef FREEBSD_COMPAT6 #ifndef FREEBSD_COMPAT7 #define FREEBSD_COMPAT7 #endif #endif etc. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no