From patchwork Tue Oct 9 15:22:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1570411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 3158740135 for ; Tue, 9 Oct 2012 15:26:13 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TLbf9-00055U-R6; Tue, 09 Oct 2012 15:24:03 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TLbee-0004zE-DF for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2012 15:23:40 +0000 Received: from klappe2.boeblingen.de.ibm.com (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0Lxfpr-1TTA2h2Bel-016ebk; Tue, 09 Oct 2012 17:23:24 +0200 From: Arnd Bergmann To: Russell King Subject: [PATCH 3/9] ARM: Fix another build warning in arch/arm/mm/alignment.c Date: Tue, 9 Oct 2012 17:22:57 +0200 Message-Id: <1349796183-30648-4-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349796183-30648-1-git-send-email-arnd@arndb.de> References: <1349796183-30648-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:6rA3BURTRlyriapdK4eKUWwdn8mcvoqR8ZK9pWIIz4o 0h2wKJrC5Lm6AlBGtWx6fmqBLVEtHsl0WNZUWPzCMGQAX9tNRj qZZGr9bUUwdDwQ7VP5kVX48JuDMhopBtO0CCq1SfDZ7X/F0yvQ 3NXVYMLTLhQNJKM1bPJpjYXxF+Pc2itCCex+4Jxn/x+NIEFbHT ozHne36CAp3tA4FmwQyTHTQ2Rn6QgfygmlomAFshM3pGUcAGoQ kQu+o5p4bBRl3sERPsdG4sw0b44INWXZ6cZG46BbTUwLli4clI rVN/TT4O1iVQhN/ocA2k/8mBcpHBEqei7Lh0F5m5zIP49zFzyz ybg+JG4u3iA9/9rUuby6htMNjR/PP7dGMCqWs+/D66vIfFUHb4 zeKr43bQlvAxkPiil33XQTlbiZlmXKpQoE= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.187 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org One such warning was recently fixed in a761cebf "ARM: Fix build warning in arch/arm/mm/alignment.c" but only for the thumb2 case, this fixes the other half. arch/arm/mm/alignment.c: In function 'do_alignment': arch/arm/mm/alignment.c:327:15: error: 'offset.un' may be used uninitialized in this function arch/arm/mm/alignment.c:748:21: note: 'offset.un' was declared here Signed-off-by: Arnd Bergmann Cc: Russell King --- arch/arm/mm/alignment.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index b9f60eb..023f4437 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c @@ -856,8 +856,10 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) if (thumb2_32b) { offset.un = 0; handler = do_alignment_t32_to_handler(&instr, regs, &offset); - } else + } else { + offset.un = 0; handler = do_alignment_ldmstm; + } break; default: