From patchwork Mon Jun 22 02:44:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Calaby X-Patchwork-Id: 28969 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 CA852B7166 for ; Mon, 22 Jun 2009 12:51:33 +1000 (EST) Received: by ozlabs.org (Postfix) id BCADDDDDA0; Mon, 22 Jun 2009 12:51:33 +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 2C431DDD1C for ; Mon, 22 Jun 2009 12:51:33 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751661AbZFVCv2 (ORCPT ); Sun, 21 Jun 2009 22:51:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752423AbZFVCv2 (ORCPT ); Sun, 21 Jun 2009 22:51:28 -0400 Received: from wf-out-1314.google.com ([209.85.200.171]:10034 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbZFVCv2 (ORCPT ); Sun, 21 Jun 2009 22:51:28 -0400 Received: by wf-out-1314.google.com with SMTP id 26so1364201wfd.4 for ; Sun, 21 Jun 2009 19:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=1RMiZvVU+/J7f5sb8B9cRZ0l09IXjnxBh/nkG0a/XRQ=; b=XPRob20AFYBUi3paqVZ/WN4HvYcmm5y3yi/fRI5tkVAclHUn0vTSrpD3rCupwzAObA FtsPwSaOoenMTVY/um2CcjHdE4RIXjVPNn07XBIybSpRPHJ1Me7PiacFMMTCZeDGcnw7 xnC0Dn59sXAExP58Xd+zCAVRP0JfzXWnowkVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=G3Ru8EZSUN06tXSj1TMalRAt1wEPD6KTNYCNNP+KikAaIoQkNM0Wr4FelcbL5MPdbd Djppci56ZbMDsQ5TnOZtcA2JPYquJ66IEw2XxvMiiR9ZDQKEPVbQyRCiXMbP6wk/79XQ qb9QFX7thDGv7AEgjyCXPnvPL30DoEiwH8x4U= Received: by 10.143.7.5 with SMTP id k5mr2425632wfi.176.1245638669336; Sun, 21 Jun 2009 19:44:29 -0700 (PDT) Received: from ?192.168.2.115? (124-168-76-228.dyn.iinet.net.au [124.168.76.228]) by mx.google.com with ESMTPS id 28sm1628wfg.25.2009.06.21.19.44.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Jun 2009 19:44:28 -0700 (PDT) Message-ID: <4A3EEFFD.2000605@gmail.com> Date: Mon, 22 Jun 2009 12:44:13 +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 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 --- Sorry for the dupes! arch/sparc/boot/piggyback_64.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe sparclinux" 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/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]);