svn commit: r278452 - head/sys/powerpc/pseries
Bjoern A. Zeeb
bz at FreeBSD.org
Mon Feb 9 11:34:47 UTC 2015
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;
More information about the svn-src-head
mailing list