From patchwork Tue Oct 2 16:36:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11965 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BB18724146 for ; Tue, 2 Oct 2012 16:39:57 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6C0C6A18710 for ; Tue, 2 Oct 2012 16:39:57 +0000 (UTC) Received: by ieje10 with SMTP id e10so14615881iej.11 for ; Tue, 02 Oct 2012 09:39:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=s4efmqVLComIx5q2USkvl/oUEK0y4AqNlO/6akYpTmY=; b=X8LX4RCntnP34A0GvZPly5CBJJbO977gSlMq3dQ0WEcbZIW23LJX1u9kaTYI8iKmyf jrpwAlUbUVq1qy+7F3vZGFNkmSXZ3HF/YUY18VoTo1HFfDzH18JIV1cuxxLijmO9bhQs Hp1Id8YJdMfkNfbgmD7OXjUssWsxF30/up3r8nlhpLAFyTOTX9d05eQafy7eQSItFr3B 7Jhydc4wd+pykhHtMbTctVhIdfUGGrWARnxCSc+7fJ0Tz/ayyDDIelbw1gf3kXKFP/UP 3SnMp8prTOGnaNLdqv/10THfr8Nu3RfNlWf/MSMoDw4jARjqTeRWc78EYz6y2RvDy2Js B/Hg== Received: by 10.50.0.193 with SMTP id 1mr9516600igg.0.1349195996792; Tue, 02 Oct 2012 09:39:56 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp92239igc; Tue, 2 Oct 2012 09:39:56 -0700 (PDT) Received: by 10.180.106.9 with SMTP id gq9mr23117957wib.12.1349195994789; Tue, 02 Oct 2012 09:39:54 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.186]) by mx.google.com with ESMTPS id m2si1715778wea.145.2012.10.02.09.39.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 09:39:54 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.186; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Lo3GS-1Tub4b1I5Y-00g6VT; Tue, 02 Oct 2012 18:37:13 +0200 From: Arnd Bergmann To: linux-arm-kernel@infradead.org Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Nicolas Ferre , Jean-Christophe Plagniol-Villard Subject: [PATCH 08/17] ARM: at91: unused variable in at91_pm_verify_clocks Date: Tue, 2 Oct 2012 18:36:47 +0200 Message-Id: <1349195816-2225-9-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349195816-2225-1-git-send-email-arnd@arndb.de> References: <1349195816-2225-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:jYn0a1z0CG+/4gWpkTima/TbtUpf/iuD2eDHhQAoIGf xHHHj86CY0TJ/kx1jc5q3TGauYKG3toBFjWp8c+u0PKOWo5LFm IgkUrYW6YsxkVvfcDkopFbW02gJrfJ2rB0OuYF6T5SsTv8bYO5 RPrhHwLF2zzk0cBe/QR/X3YbvY9goaJJ+pJqolZS7IsEp6x4Sf nW8Km2cT/pUSr4CnukYqvrNWaKMQ31yRhyzOHAcIG+XMMbBm5/ sHhY9GZceJDrw3yeaqWTBGOTjIbGNCNwCuS0+hl94ErBV165eB H+0/znTlqOSinfMcnq+xpOkhaFGBf2LEwaFkRWff6Ydt/seOE6 QcS1/5GrXjmt/jE5Muy3S3hHWvW/ztI36QUyKtauzWjDwi/g8F FNOU9ZJ5Hllvw== X-Gm-Message-State: ALoCoQmojWUok6oF39vAMh7DDIizqVflVoYeSAfU/ZsMHSVpOrMZC6L/5i6vZfw2zSzpuNd64nTG The code using the variable 'i' in this function is conditional, so we have to make the declaration conditional as well to avoid a harmless warning. Without this patch, building at91sam9263_defconfig results in: /home/arnd/linux-arm/arch/arm/mach-at91/pm.c: In function 'at91_pm_verify_clocks': /home/arnd/linux-arm/arch/arm/mach-at91/pm.c:137:6: warning: unused variable 'i' [-Wunused-variable] Signed-off-by: Arnd Bergmann Cc: Nicolas Ferre Cc: Jean-Christophe Plagniol-Villard --- arch/arm/mach-at91/pm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 2c2d865..cdd620d 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -135,7 +135,9 @@ static int at91_pm_begin(suspend_state_t state) static int at91_pm_verify_clocks(void) { unsigned long scsr; +#ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS int i; +#endif scsr = at91_pmc_read(AT91_PMC_SCSR);