From owner-svn-src-head@FreeBSD.ORG Mon Sep 3 17:02:15 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 24ACB106566C; Mon, 3 Sep 2012 17:02:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 72ED18FC12; Mon, 3 Sep 2012 17:02:13 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q83H2L1X072905; Mon, 3 Sep 2012 20:02:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q83H287p034303; Mon, 3 Sep 2012 20:02:08 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q83H28TT034302; Mon, 3 Sep 2012 20:02:08 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 3 Sep 2012 20:02:08 +0300 From: Konstantin Belousov To: mdf@freebsd.org Message-ID: <20120903170208.GQ33100@deviant.kiev.zoral.com.ua> References: <201209030852.q838q6lC053405@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xLhNcw00gEcfFoIE" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-head@freebsd.org, Aleksandr Rybalko , src-committers@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r240067 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 17:02:15 -0000 --xLhNcw00gEcfFoIE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 03, 2012 at 09:09:08AM -0700, mdf@freebsd.org wrote: > On Mon, Sep 3, 2012 at 1:52 AM, Aleksandr Rybalko wrote: > > Author: ray > > Date: Mon Sep 3 08:52:05 2012 > > New Revision: 240067 > > URL: http://svn.freebsd.org/changeset/base/240067 > > > > Log: > > Add kern.hintmode sysctl variable to show current state of hints: > > 0 - loader hints in environment only; > > 1 - static hints only > > 2 - fallback mode (Dynamic KENV with fallback to kernel environment) > > Add kern.hintmode write handler, accept only value 2. That will switch > > static KENV to dynamic. So it will be possible to change device hints. > > > > Approved by: adrian (mentor) > > > > Modified: > > head/sys/kern/subr_hints.c > > > > Modified: head/sys/kern/subr_hints.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > --- head/sys/kern/subr_hints.c Mon Sep 3 07:18:24 2012 (r24006= 6) > > +++ head/sys/kern/subr_hints.c Mon Sep 3 08:52:05 2012 (r24006= 7) > > @@ -29,8 +29,10 @@ __FBSDID("$FreeBSD$"); > > > > #include > > #include > > +#include > > #include > > #include > > +#include >=20 > Putting on my style-nazi hat. sysctl comes before systm alphabetically. Systm.h is very special, it normally comes as the second item in the include list, right after param.h. --xLhNcw00gEcfFoIE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlBE4o8ACgkQC3+MBN1Mb4iZlACg6lqUQVLihrkHcVsiKwpshl49 5oQAn3HCfbwiU3OQiIKc3gdFP7uF77OS =niOP -----END PGP SIGNATURE----- --xLhNcw00gEcfFoIE--