summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/include/asm/dwarf.h2
-rw-r--r--arch/sh/kernel/dwarf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/asm/dwarf.h b/arch/sh/include/asm/dwarf.h
index c367ed3..ced6795 100644
--- a/arch/sh/include/asm/dwarf.h
+++ b/arch/sh/include/asm/dwarf.h
@@ -200,7 +200,7 @@
*/
static __always_inline unsigned long dwarf_read_arch_reg(unsigned int reg)
{
- unsigned long value;
+ unsigned long value = 0;
switch (reg) {
case 14:
diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c
index 700f7e0..bc4d8d7 100644
--- a/arch/sh/kernel/dwarf.c
+++ b/arch/sh/kernel/dwarf.c
@@ -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;
OpenPOWER on IntegriCloud