From owner-svn-src-head@FreeBSD.ORG Mon Feb 9 16:00:50 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 99498BB4; Mon, 9 Feb 2015 16:00:50 +0000 (UTC) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E172645; Mon, 9 Feb 2015 16:00:50 +0000 (UTC) Received: from comporellon.tachypleus.net (polaris.tachypleus.net [75.101.50.44]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.14.9) with ESMTPSA id t19FobEk032425 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 9 Feb 2015 07:50:37 -0800 Message-ID: <54D8D74C.2000803@freebsd.org> Date: Mon, 09 Feb 2015 07:50:36 -0800 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Bjoern A. Zeeb" , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r278452 - head/sys/powerpc/pseries References: <201502091134.t19BYkaN090687@svn.freebsd.org> In-Reply-To: <201502091134.t19BYkaN090687@svn.freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVa56PQnebpu3PllVWlq6F7lrUB+0gKXYPHPXDPFc3Q6LLrRQ7iAq4RR9cg8OmuxgT8FPqJDsbY1Cg2KUzx3WwQU7+G+0zNYWKA= X-Sonic-ID: C;+jPSY3Ow5BGy/mS47jkJAQ== M;mMUpZHOw5BGy/mS47jkJAQ== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 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, 09 Feb 2015 16:00:50 -0000 Thank you -- sorry for missing this! -Nathan On 02/09/15 03:34, Bjoern A. Zeeb wrote: > Author: bz > Date: Mon Feb 9 11:34:45 2015 > New Revision: 278452 > URL: https://svnweb.freebsd.org/changeset/base/278452 > > Log: > Properly hide a variable under #ifdef as it is only used inside the > specific #ifdef block otherwise leaving an unused variable and breaking > other kernel builds. > > Modified: > head/sys/powerpc/pseries/platform_chrp.c > > Modified: head/sys/powerpc/pseries/platform_chrp.c > ============================================================================== > --- head/sys/powerpc/pseries/platform_chrp.c Mon Feb 9 11:11:17 2015 (r278451) > +++ head/sys/powerpc/pseries/platform_chrp.c Mon Feb 9 11:34:45 2015 (r278452) > @@ -124,9 +124,9 @@ chrp_probe(platform_t plat) > static int > chrp_attach(platform_t plat) > { > +#ifdef __powerpc64__ > int i; > > -#ifdef __powerpc64__ > /* XXX: check for /rtas/ibm,hypertas-functions? */ > if (!(mfmsr() & PSL_HV)) { > struct mem_region *phys, *avail; >