From patchwork Tue Sep 4 08:01:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Min X-Patchwork-Id: 1401361 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 E9A693FC71 for ; Tue, 4 Sep 2012 08:04:54 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T8o55-0006Ag-L7; Tue, 04 Sep 2012 08:01:55 +0000 Received: from lgemrelse1q.lge.com ([156.147.1.111]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T8o51-0006A6-Ew for linux-arm-kernel@lists.infradead.org; Tue, 04 Sep 2012 08:01:53 +0000 X-AuditID: 9c93016f-b7cc0ae000000e9f-5c-5045b567cf9e Received: from chanhomin ( [10.178.30.175]) by LGEMRELSE1Q.lge.com (Symantec Brightmail Gateway) with SMTP id 5D.2A.03743.765B5405; Tue, 4 Sep 2012 17:01:43 +0900 (KST) From: "Chanho Min" To: "'Russell King'" , , Subject: [PATCH] ARM: Fix build warning in do_alignment. Date: Tue, 4 Sep 2012 17:01:43 +0900 Message-ID: <011401cd8a73$85edd1c0$91c97540$@min@lge.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac2Kc4WYIKPNgvhxQ1OB7x+hJREUBA== Content-Language: ko X-Brightmail-Tracker: AAAAAA== X-Spam-Note: CRM114 invocation failed X-Spam-Score: -3.4 (---) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-3.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 MSGID_MULTIPLE_AT Message-ID contains multiple '@' characters -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [156.147.1.111 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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(-) 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); unsigned int type;