Although the following compiler warning is bogus
it seems harmless to initialise initrd_start to NULL.

# arm-unknown-linux-gnu-gcc --version
arm-unknown-linux-gnu-gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# make
kexec/arch/arm/kexec-zImage-arm.c: In function 'zImage_arm_load':
kexec/arch/arm/kexec-zImage-arm.c:135: warning: 'initrd_start' may be used
uninitialized in this function

Signed-off-by: Simon Horman <[email protected]>

Index: kexec-tools/kexec/arch/arm/kexec-zImage-arm.c
===================================================================
--- kexec-tools.orig/kexec/arch/arm/kexec-zImage-arm.c  2010-02-01 
23:07:23.000000000 +1100
+++ kexec-tools/kexec/arch/arm/kexec-zImage-arm.c       2010-02-01 
23:07:23.000000000 +1100
@@ -132,7 +132,7 @@ int atag_arm_load(struct kexec_info *inf
        char *buf;
        off_t len;
        struct tag *params;
-       uint32_t *initrd_start;
+       uint32_t *initrd_start = NULL;
        
        buf = xmalloc(getpagesize());
        if (!buf) {


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to