From patchwork Mon Sep 10 03:25:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Min X-Patchwork-Id: 1429281 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 509BD402E1 for ; Mon, 10 Sep 2012 03:28:04 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TAuck-00083Q-Nz; Mon, 10 Sep 2012 03:25:22 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TAucg-00083C-Mq for linux-arm-kernel@lists.infradead.org; Mon, 10 Sep 2012 03:25:19 +0000 Received: by wibhn17 with SMTP id hn17so1105515wib.0 for ; Sun, 09 Sep 2012 20:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=cASiX1FgKKlZ/n12pz7RVi/uCuC4HMHwiHYQjkhgdj8=; b=X2ExsBkAKXIHi7aF2Ku9SNe6I+q1t0NRIgqJFv0CrnuCI5Z2+cSygaSmV50hkpgxhA axK/RlSncqgZMp/pS9f/qN2oDsWc6WnFYGF7H4zJ57GsEFBGJ14xpz0b7bnP4MW/a20L I2ZsRYQhGT5WiyFHTz/hgtgYmnL7WJUJt1HfisSNw1sKgo004C7V5fK1qICtRY4XtrSn zYCsHKrjDracSfb1A9YA9WACN6cAkb0Xz5ppVZ3TSzkIfyLKzKSVFnxFpfJc5kJaffbJ +RAA4R1diaBlsBYee4KNVu85euMK5yj6WBYa2mIZMKKi71Zp2xC1DEXaRzoZdnFXSMKG xhyQ== MIME-Version: 1.0 Received: by 10.181.13.164 with SMTP id ez4mr13881977wid.21.1347247515918; Sun, 09 Sep 2012 20:25:15 -0700 (PDT) Received: by 10.194.33.165 with HTTP; Sun, 9 Sep 2012 20:25:15 -0700 (PDT) Date: Mon, 10 Sep 2012 12:25:15 +0900 Message-ID: Subject: [PATCH] ARM: Fix build warning in do_alignment. From: Chanho Min To: Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chanho0207[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (chanho0207[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: David Howells , H Hartley Sweeten , Stephen Warren , Nicolas Pitre 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: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix the following build warning: 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 [-Wuninitialized] arch/arm/mm/alignment.c:749:21: note: 'offset.un' was declared here Signed-off-by: Chanho Min --- arch/arm/mm/alignment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) unsigned int type; diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index 9107231..f83b38c 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c @@ -746,7 +746,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 offset = {0}; unsigned long instr = 0, instrptr; int (*handler)(unsigned long addr, unsigned long instr, struct pt_regs *regs);