From patchwork Mon Oct 29 16:43:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 1664641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id EA6E3DFB7A for ; Mon, 29 Oct 2012 16:45:49 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TSsQw-0003dJ-Hy; Mon, 29 Oct 2012 16:43:26 +0000 Received: from mail-da0-f49.google.com ([209.85.210.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TSsQs-0003d5-Eg for linux-arm-kernel@lists.infradead.org; Mon, 29 Oct 2012 16:43:23 +0000 Received: by mail-da0-f49.google.com with SMTP id q27so2269295daj.36 for ; Mon, 29 Oct 2012 09:43:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=/x9FRfyyEqtMX/AkQx/YjGbCoY1BrriGJ9JnK3SlaPU=; b=KNdLp0bmx2RTGVfG5AigQy1c7R39Ev23xhx2hndjZ32uoR7yf2W3qPewfssv8fZ3jE tTkerEjITRK7w9sm8Wsis+dpRGekdjnFjDFsLd7W6UvEMv6O1VPLNGIK4OOA6PJ3SPq0 lR5XxuW7u38vtSyvb+5uJk01GaaUVGLZ7MjItxj8HQWFc0yrs8SzUSjGqPfuUTJv4y4P z0pSH4Z6/FBDCo764GcH4fYluOxTlPMoIyiiDxidK37OckYVEwD+VS2ILiICL5dvK6PK RiZbYxCc9d6Na4hfTelpGzMjSRwgJJPk9QxKzBwv9GHgq+Bq+5pcwlbaSr9vJJiJlm8U Xerw== Received: by 10.68.136.229 with SMTP id qd5mr94085503pbb.154.1351528998062; Mon, 29 Oct 2012 09:43:18 -0700 (PDT) Received: from localhost ([122.166.182.101]) by mx.google.com with ESMTPS id j9sm6197322pav.15.2012.10.29.09.43.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 09:43:17 -0700 (PDT) From: Viresh Kumar To: linux@arm.linux.org.uk Subject: [PATCH] ARM: mm: uninitialized warning corrections Date: Mon, 29 Oct 2012 22:13:07 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e X-Gm-Message-State: ALoCoQnpo7IZJ6Z0LlEt92ReOfJDC3/AAkFXFRqVaLuY7RAcbe+1bWc9j6bI54u2L2iLzkJrjHu2 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.49 listed in list.dnswl.org] 2.5 SUSPICIOUS_RECIPS Similar addresses in recipient list -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Viresh Kumar , linaro-dev@lists.linaro.org, linux-arm-kernel@lists.infradead.org, patches@linaro.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 The variables here are really not used uninitialized. arch/arm/mm/alignment.c: In function 'do_alignment': arch/arm/mm/alignment.c:327:15: warning: 'offset.un' may be used uninitialized in this function [-Wmaybe-uninitialized] arch/arm/mm/alignment.c:748:21: note: 'offset.un' was declared here Signed-off-by: Viresh Kumar --- arch/arm/mm/alignment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index b9f60eb..223b4aa 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c @@ -745,7 +745,7 @@ do_alignment_t32_to_handler(unsigned long *pinstr, struct pt_regs *regs, static int do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) { - union offset_union offset; + union offset_union uninitialized_var(offset); unsigned long instr = 0, instrptr; int (*handler)(unsigned long addr, unsigned long instr, struct pt_regs *regs); unsigned int type;