Commit d8252d62 authored by Paul Mundt's avatar Paul Mundt

sh: fix up the dwarf unwinder build for MODULES=n.

Presently the dwarf unwinder build blows up if modules are disabled,
fix it up.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent b2e25838
...@@ -845,8 +845,10 @@ static int dwarf_parse_cie(void *entry, void *p, unsigned long len, ...@@ -845,8 +845,10 @@ static int dwarf_parse_cie(void *entry, void *p, unsigned long len,
rb_link_node(&cie->node, parent, rb_node); rb_link_node(&cie->node, parent, rb_node);
rb_insert_color(&cie->node, &cie_root); rb_insert_color(&cie->node, &cie_root);
#ifdef CONFIG_MODULES
if (mod != NULL) if (mod != NULL)
list_add_tail(&cie->link, &mod->arch.cie_list); list_add_tail(&cie->link, &mod->arch.cie_list);
#endif
spin_unlock_irqrestore(&dwarf_cie_lock, flags); spin_unlock_irqrestore(&dwarf_cie_lock, flags);
...@@ -935,8 +937,10 @@ static int dwarf_parse_fde(void *entry, u32 entry_type, ...@@ -935,8 +937,10 @@ static int dwarf_parse_fde(void *entry, u32 entry_type,
rb_link_node(&fde->node, parent, rb_node); rb_link_node(&fde->node, parent, rb_node);
rb_insert_color(&fde->node, &fde_root); rb_insert_color(&fde->node, &fde_root);
#ifdef CONFIG_MODULES
if (mod != NULL) if (mod != NULL)
list_add_tail(&fde->link, &mod->arch.fde_list); list_add_tail(&fde->link, &mod->arch.fde_list);
#endif
spin_unlock_irqrestore(&dwarf_fde_lock, flags); spin_unlock_irqrestore(&dwarf_fde_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment