From patchwork Mon Jun 22 02:43:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Calaby X-Patchwork-Id: 28965 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 9881CB71D8 for ; Mon, 22 Jun 2009 12:44:02 +1000 (EST) Received: by ozlabs.org (Postfix) id 8A6CADDDA2; Mon, 22 Jun 2009 12:44:02 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 221A2DDD0C for ; Mon, 22 Jun 2009 12:44:02 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751403AbZFVCn5 (ORCPT ); Sun, 21 Jun 2009 22:43:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752894AbZFVCn5 (ORCPT ); Sun, 21 Jun 2009 22:43:57 -0400 Received: from mx06.syd.iprimus.net.au ([210.50.76.235]:43006 "EHLO mx06.syd.iprimus.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751403AbZFVCn4 (ORCPT ); Sun, 21 Jun 2009 22:43:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUFAGGMPko6srcd/2dsb2JhbACBUctMhAoF X-IronPort-AV: E=Sophos;i="4.42,265,1243778400"; d="scan'208";a="195834295" Received: from 29.149.dsl.mel.iprimus.net.au (HELO ADLMAIL.adlizard.com) ([58.178.183.29]) by smtp06.syd.iprimus.net.au with ESMTP; 22 Jun 2009 12:43:58 +1000 Received: from [192.168.2.115] ([124.168.76.228]) by ADLMAIL.adlizard.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 22 Jun 2009 12:43:56 +1000 Message-ID: <4A3EEFE2.3010100@julian.is-a-geek.org> Date: Mon, 22 Jun 2009 12:43:46 +1000 From: Julian Calaby User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: sparclinux CC: oftedal@gmail.com, David Miller , sam@ravnborg.org, reif@earthlink.net Subject: [PATCH 1/4] sparc64: Fix build warnings in piggyback_64.c X-OriginalArrivalTime: 22 Jun 2009 02:43:56.0612 (UTC) FILETIME=[49C82040:01C9F2E3] Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org This patch fixes the following build warnings: arch/sparc/boot/piggyback_64.c: In function 'main': arch/sparc/boot/piggyback_64.c:44: warning: 'end' may be used uninitialized in this function arch/sparc/boot/piggyback_64.c:44: warning: 'start' may be used uninitialized in this function Signed-off-by: Julian Calaby --- arch/sparc/boot/piggyback_64.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/sparc/boot/piggyback_64.c b/arch/sparc/boot/piggyback_64.c index de364bf..c63fd1b 100644 --- a/arch/sparc/boot/piggyback_64.c +++ b/arch/sparc/boot/piggyback_64.c @@ -46,6 +46,7 @@ int main(int argc,char **argv) struct stat s; int image, tail; + start = end = 0; if (stat (argv[3], &s) < 0) die (argv[3]); map = fopen (argv[2], "r"); if (!map) die(argv[2]);