From patchwork Wed Feb 27 22:21:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 2194791 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 7E5F3DF2F2 for ; Wed, 27 Feb 2013 22:21:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750805Ab3B0WVU (ORCPT ); Wed, 27 Feb 2013 17:21:20 -0500 Received: from mout.gmx.net ([212.227.17.21]:60571 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711Ab3B0WVT (ORCPT ); Wed, 27 Feb 2013 17:21:19 -0500 Received: from mailout-de.gmx.net ([10.1.76.2]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LdbDA-1UaZQ42tWM-00iizx for ; Wed, 27 Feb 2013 23:21:18 +0100 Received: (qmail invoked by alias); 27 Feb 2013 22:21:18 -0000 Received: from p54AD04DF.dip0.t-ipconnect.de (EHLO p100.box) [84.173.4.223] by mail.gmx.net (mp002) with SMTP; 27 Feb 2013 23:21:18 +0100 X-Authenticated: #1045983 X-Provags-ID: V01U2FsdGVkX19aOrY51YpaEoVRgiT/rakPNnpMJ4Y3bFvWyagc8X oY424++oQMdSl/ Date: Wed, 27 Feb 2013 23:21:15 +0100 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley Subject: parisc: avoid unitialized variable warning in pa_memcpy() Message-ID: <20130227222115.GA2921@p100.box> References: <20130227221137.GA2806@p100.box> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130227221137.GA2806@p100.box> User-Agent: Mutt/1.5.21 (2010-09-15) X-Y-GMX-Trusted: 0 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org commit eed0220c5b2f33e4da2e9ba207c798c1bdebe500 Author: Helge Deller Date: Wed Feb 27 00:06:48 2013 +0100 parisc: avoid unitialized variable warning in pa_memcpy() Avoid this warning, while still prevent gcc from optimizing away the exception code: arch/parisc/lib/memcpy.c: In function ‘pa_memcpy’: arch/parisc/lib/memcpy.c:256:2: warning: ‘dummy’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c index 1dbca5c..a49cc81 100644 --- a/arch/parisc/lib/memcpy.c +++ b/arch/parisc/lib/memcpy.c @@ -68,7 +68,7 @@ DECLARE_PER_CPU(struct exception_data, exception_data); #define preserve_branch(label) do { \ - volatile int dummy; \ + volatile int dummy = 0; \ /* The following branch is never taken, it's just here to */ \ /* prevent gcc from optimizing away our exception code. */ \ if (unlikely(dummy != dummy)) \