diff options
Diffstat (limited to 'arch/sh/kernel/dwarf.c')
-rw-r--r-- | arch/sh/kernel/dwarf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c index bd1c497280a6..a8234b2010d1 100644 --- a/arch/sh/kernel/dwarf.c +++ b/arch/sh/kernel/dwarf.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
23 | #include <linux/elf.h> | 23 | #include <linux/elf.h> |
24 | #include <linux/ftrace.h> | 24 | #include <linux/ftrace.h> |
25 | #include <linux/slab.h> | ||
25 | #include <asm/dwarf.h> | 26 | #include <asm/dwarf.h> |
26 | #include <asm/unwinder.h> | 27 | #include <asm/unwinder.h> |
27 | #include <asm/sections.h> | 28 | #include <asm/sections.h> |
@@ -727,7 +728,7 @@ static int dwarf_parse_cie(void *entry, void *p, unsigned long len, | |||
727 | unsigned char *end, struct module *mod) | 728 | unsigned char *end, struct module *mod) |
728 | { | 729 | { |
729 | struct rb_node **rb_node = &cie_root.rb_node; | 730 | struct rb_node **rb_node = &cie_root.rb_node; |
730 | struct rb_node *parent; | 731 | struct rb_node *parent = *rb_node; |
731 | struct dwarf_cie *cie; | 732 | struct dwarf_cie *cie; |
732 | unsigned long flags; | 733 | unsigned long flags; |
733 | int count; | 734 | int count; |
@@ -856,7 +857,7 @@ static int dwarf_parse_fde(void *entry, u32 entry_type, | |||
856 | unsigned char *end, struct module *mod) | 857 | unsigned char *end, struct module *mod) |
857 | { | 858 | { |
858 | struct rb_node **rb_node = &fde_root.rb_node; | 859 | struct rb_node **rb_node = &fde_root.rb_node; |
859 | struct rb_node *parent; | 860 | struct rb_node *parent = *rb_node; |
860 | struct dwarf_fde *fde; | 861 | struct dwarf_fde *fde; |
861 | struct dwarf_cie *cie; | 862 | struct dwarf_cie *cie; |
862 | unsigned long flags; | 863 | unsigned long flags; |