Patchwork [1/4] sparc64: Fix build warnings in piggyback_64.c

login
register
mail settings
Submitter Julian Calaby
Date June 22, 2009, 2:43 a.m.
Message ID <4A3EEFE2.3010100@julian.is-a-geek.org>
Download mbox | patch
Permalink /patch/28965/
State Superseded
Delegated to: David Miller
Headers show

Comments

Julian Calaby - June 22, 2009, 2:43 a.m.
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 <julian.calaby@gmail.com>
---
 arch/sparc/boot/piggyback_64.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

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]);