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: 12567 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 9C3D723F58 for ; Mon, 29 Oct 2012 16:43:20 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 3C532A18494 for ; Mon, 29 Oct 2012 16:43:20 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so3884445iag.11 for ; Mon, 29 Oct 2012 09:43:19 -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:x-gm-message-state; bh=/x9FRfyyEqtMX/AkQx/YjGbCoY1BrriGJ9JnK3SlaPU=; b=WdPskdSOfEhZoFPCg19cSG9pxOicuBVLm2j3w+u2WLcjkjWWlLKWOEQiW8ptA8wKPZ 0WbsL7R2YinbqHqA78mAVpAphadh+TXoz/5yEmb6u8xzGhHF5XRCj5GMGqArzk8zKmRW k9cTb5+aDIjYiSFwTGlF+ARRdatPX3RvnDADKOh5RCkfL4+ubgzlJ0YYh0Ek4ilewCSh N/r2kdvb0iWWZC/hJcoIk5/W80sZJ8YNND4NVjDMHCmLKaEVc5TKU6uKirRrOLAuI12I RLEkRP8cUzGvo1HzOqrnTEAi6k/8moDHIduvLH4+f5dAXol4j89uiBQAVE9abFpbQwpC bqjA== Received: by 10.50.152.137 with SMTP id uy9mr9991443igb.62.1351528999466; Mon, 29 Oct 2012 09:43:19 -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 n20csp240260igt; Mon, 29 Oct 2012 09:43:18 -0700 (PDT) Received: by 10.66.90.36 with SMTP id bt4mr84750426pab.54.1351528998426; Mon, 29 Oct 2012 09:43:18 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id n5si13216944paw.89.2012.10.29.09.43.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 09:43:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) smtp.mail=viresh.kumar@linaro.org Received: by mail-pa0-f50.google.com with SMTP id hz11so3660466pad.37 for ; Mon, 29 Oct 2012 09:43:18 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, linaro-dev@lists.linaro.org, patches@linaro.org, Viresh Kumar 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: ALoCoQlJGdfw3PIwXCUUxcvj0X0cEktiAHjbZnP+c3mSNexcQ5FrqGLrBJLxXfpCIvQ1BAflMQDs 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;