summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2015-02-09 11:34:45 +0000
committerbz <bz@FreeBSD.org>2015-02-09 11:34:45 +0000
commit4a78a9edfc6eaff6b9798fb4dfa4fadc1c6ae1ff (patch)
treec17976a26ad6cde624ac330935dc773f0caf4cd1
parent4bc86263fa6595ef957e834f3dd87ab23932d0dd (diff)
downloadFreeBSD-src-4a78a9edfc6eaff6b9798fb4dfa4fadc1c6ae1ff.zip
FreeBSD-src-4a78a9edfc6eaff6b9798fb4dfa4fadc1c6ae1ff.tar.gz
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.
-rw-r--r--sys/powerpc/pseries/platform_chrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/pseries/platform_chrp.c b/sys/powerpc/pseries/platform_chrp.c
index eb86ec7..b1fc948 100644
--- a/sys/powerpc/pseries/platform_chrp.c
+++ b/sys/powerpc/pseries/platform_chrp.c
@@ -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;
OpenPOWER on IntegriCloud