]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 c367ed3373c51f8e6d3b833b0035cbb205574a43..ced6795891a6f06977e54b9f3da239da0fdd71ae 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 700f7e0fd658fe3adab89ea4d5be5bee1aaa3d56..bc4d8d75332bc618082dbd02c0efd6b6b4b87487 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;