diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-31 00:47:06 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-31 00:47:06 -0400 |
commit | 2f6dafc5fcbf3fddce345c47da1f277a156fe22a (patch) | |
tree | 2787f531d1189d8dfaae7f3900f0491fade49e1d /arch/sh | |
parent | 4aa5ac4ef44dd8c986241c54298abd7910b78b3f (diff) |
sh: unwinder: Fix up uninitialized variable warnings on sh2a build.
A couple of these popped up on the sh2a build, causing build failures.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/dwarf.h | 2 | ||||
-rw-r--r-- | arch/sh/kernel/dwarf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/asm/dwarf.h b/arch/sh/include/asm/dwarf.h index c367ed3373c5..ced6795891a6 100644 --- a/arch/sh/include/asm/dwarf.h +++ b/arch/sh/include/asm/dwarf.h | |||
@@ -200,7 +200,7 @@ | |||
200 | */ | 200 | */ |
201 | static __always_inline unsigned long dwarf_read_arch_reg(unsigned int reg) | 201 | static __always_inline unsigned long dwarf_read_arch_reg(unsigned int reg) |
202 | { | 202 | { |
203 | unsigned long value; | 203 | unsigned long value = 0; |
204 | 204 | ||
205 | switch (reg) { | 205 | switch (reg) { |
206 | case 14: | 206 | case 14: |
diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c index 700f7e0fd658..bc4d8d75332b 100644 --- a/arch/sh/kernel/dwarf.c +++ b/arch/sh/kernel/dwarf.c | |||
@@ -887,7 +887,7 @@ static int __init dwarf_unwinder_init(void) | |||
887 | { | 887 | { |
888 | u32 entry_type; | 888 | u32 entry_type; |
889 | void *p, *entry; | 889 | void *p, *entry; |
890 | int count, err; | 890 | int count, err = 0; |
891 | unsigned long len; | 891 | unsigned long len; |
892 | unsigned int c_entries, f_entries; | 892 | unsigned int c_entries, f_entries; |
893 | unsigned char *end; | 893 | unsigned char *end; |