From patchwork Thu May 15 16:35:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Wood X-Patchwork-Id: 349289 X-Patchwork-Delegate: scottwood@freescale.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id C16F814029F for ; Fri, 16 May 2014 02:36:37 +1000 (EST) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1lp0139.outbound.protection.outlook.com [207.46.163.139]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 475471400D8 for ; Fri, 16 May 2014 02:36:02 +1000 (EST) Received: from BY2PR03CA056.namprd03.prod.outlook.com (10.141.249.29) by BY2PR03MB393.namprd03.prod.outlook.com (10.141.141.12) with Microsoft SMTP Server (TLS) id 15.0.944.11; Thu, 15 May 2014 16:35:55 +0000 Received: from BN1AFFO11FD027.protection.gbl (2a01:111:f400:7c10::174) by BY2PR03CA056.outlook.office365.com (2a01:111:e400:2c5d::29) with Microsoft SMTP Server (TLS) id 15.0.944.11 via Frontend Transport; Thu, 15 May 2014 16:35:54 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD027.mail.protection.outlook.com (10.58.52.87) with Microsoft SMTP Server (TLS) id 15.0.939.9 via Frontend Transport; Thu, 15 May 2014 16:35:54 +0000 Received: from aoeu.am.freescale.net (aoeu.am.freescale.net [10.81.32.119]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s4FGZo63007947; Thu, 15 May 2014 09:35:53 -0700 From: Scott Wood To: Subject: [PATCH] powerpc: Fix unused variable warning for epapr_has_idle Date: Thu, 15 May 2014 11:35:35 -0500 Message-ID: <1400171735-20238-1-git-send-email-scottwood@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(189002)(199002)(20776003)(64706001)(47776003)(99396002)(88136002)(19580395003)(50986999)(74502001)(79102001)(77096999)(4396001)(50466002)(74662001)(31966008)(102836001)(48376002)(50226001)(44976005)(84676001)(83072002)(85852003)(92726001)(81342001)(81542001)(36756003)(19580405001)(83322001)(93916002)(80022001)(86362001)(76482001)(62966002)(77982001)(6806004)(33646001)(97736001)(92566001)(89996001)(21056001)(81156002)(68736004)(87936001)(87286001)(69596002)(46102001)(77156001); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB393; H:az84smr01.freescale.net; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Forefront-PRVS: 0212BDE3BE Received-SPF: Fail (: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=scottwood@freescale.com; X-OriginatorOrg: freescale.com Cc: Scott Wood X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" This warning can be seen in allyesconfig, and was introduced by commit f9eb581c63b2acce827570e105205c0789360650 "powerpc: fix build of epapr_paravirt on 64-bit book3s". Signed-off-by: Scott Wood --- Sorry about the churn on this -- I did try to build allyesconfig, but I forgot that CONFIG_PPC_DISABLE_WERROR would be enabled, plus the build failed on the "attempt to move .org backwards" issue. --- arch/powerpc/kernel/epapr_paravirt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/epapr_paravirt.c b/arch/powerpc/kernel/epapr_paravirt.c index eab2f2a..c47fed0 100644 --- a/arch/powerpc/kernel/epapr_paravirt.c +++ b/arch/powerpc/kernel/epapr_paravirt.c @@ -30,7 +30,7 @@ extern u32 epapr_ev_idle_start[]; #endif bool epapr_paravirt_enabled; -static bool epapr_has_idle; +static bool __maybe_unused epapr_has_idle; static int __init early_init_dt_scan_epapr(unsigned long node, const char *uname,