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: 12067 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 B6C7C24188 for ; Tue, 9 Oct 2012 15:23:31 +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 54E8AA18CE6 for ; Tue, 9 Oct 2012 15:23:31 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so11480943iej.11 for ; Tue, 09 Oct 2012 08:23:31 -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=fBc3joQp7BaKbN7P258Vgnz+lB8J0tv3X4CJz+ok6OY=; b=LRhhUWohmShNYet3ReIFe+iFmEyxwn4IRRT3NBHDR3qVFTQOXmdedRbEIAvfR62+Bb Vt0yKcXBInPxEeFRBe/o1qJkCP2MoxgQag0YpKof/gHZ+A3PwOobFoR+aXJ30LBBeSVA /UiipJsQgUHjxPdiV9bzZM6hqj06LvNcw1qVgOsRm6nyx+aJXkmNsoDQBjNHfYB/5okd 4eG2DRwxJxxFrOomEYOlJAaYm5MwaZWEAS1YKsHGmLJXWuTE/GAzs89+zOoQNb7N3MKN dAa4S8tfQDd70PL9YD48A4lF4rcS+6OdON0AXVEAxyPTRsF4h1zEZ+V3ecLcugv+0eiC XC4A== Received: by 10.50.46.226 with SMTP id y2mr1992137igm.62.1349796211118; Tue, 09 Oct 2012 08:23:31 -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.67.148 with SMTP id n20csp73060igt; Tue, 9 Oct 2012 08:23:30 -0700 (PDT) Received: by 10.204.15.193 with SMTP id l1mr6838834bka.95.1349796209005; Tue, 09 Oct 2012 08:23:29 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.187]) by mx.google.com with ESMTPS id ig15si17750592bkc.41.2012.10.09.08.23.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Oct 2012 08:23:28 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.187 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.187; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.187 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann 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-Gm-Message-State: ALoCoQmhvMMaghhpYIhk5KqEM4++GyZ+KvJ6+tC4vCj0GlppAGDpwxcFdgK+PL8hwAdelZnuKG4F 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: