sh: unwinder: Fix up uninitialized variable warnings on sh2a build.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 31 Aug 2009 04:47:06 +0000 (13:47 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 31 Aug 2009 04:47:06 +0000 (13:47 +0900)
A couple of these popped up on the sh2a build, causing build failures.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/dwarf.h
arch/sh/kernel/dwarf.c

index c367ed3..ced6795 100644 (file)
  */
 static __always_inline unsigned long dwarf_read_arch_reg(unsigned int reg)
 {
-       unsigned long value;
+       unsigned long value = 0;
 
        switch (reg) {
        case 14:
index 700f7e0..bc4d8d7 100644 (file)
@@ -887,7 +887,7 @@ static int __init dwarf_unwinder_init(void)
 {
        u32 entry_type;
        void *p, *entry;
-       int count, err;
+       int count, err = 0;
        unsigned long len;
        unsigned int c_entries, f_entries;
        unsigned char *end;