Commit d8252d6272682096835b4e1ef714cb1b593aa7fb
1 parent
b2e25838c5
Exists in
master
and in
20 other branches
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: Paul Mundt <lethal@linux-sh.org>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
arch/sh/kernel/dwarf.c
... | ... | @@ -845,8 +845,10 @@ |
845 | 845 | rb_link_node(&cie->node, parent, rb_node); |
846 | 846 | rb_insert_color(&cie->node, &cie_root); |
847 | 847 | |
848 | +#ifdef CONFIG_MODULES | |
848 | 849 | if (mod != NULL) |
849 | 850 | list_add_tail(&cie->link, &mod->arch.cie_list); |
851 | +#endif | |
850 | 852 | |
851 | 853 | spin_unlock_irqrestore(&dwarf_cie_lock, flags); |
852 | 854 | |
853 | 855 | |
... | ... | @@ -935,8 +937,10 @@ |
935 | 937 | rb_link_node(&fde->node, parent, rb_node); |
936 | 938 | rb_insert_color(&fde->node, &fde_root); |
937 | 939 | |
940 | +#ifdef CONFIG_MODULES | |
938 | 941 | if (mod != NULL) |
939 | 942 | list_add_tail(&fde->link, &mod->arch.fde_list); |
943 | +#endif | |
940 | 944 | |
941 | 945 | spin_unlock_irqrestore(&dwarf_fde_lock, flags); |
942 | 946 |